Package javax.security.jacc

Examples of javax.security.jacc.PolicyContextHandler.supports()


    {
      if (key == null)
      throw new IllegalArgumentException("invalid key");
  PolicyContextHandler handler =
      (PolicyContextHandler) handlerTable.get(key);
  if (handler == null || !handler.supports(key))
      throw new IllegalArgumentException("unknown handler key");
 
  java.lang.SecurityManager sm = System.getSecurityManager();
  if (sm != null)
      sm.checkPermission(new SecurityPermission("setPolicy"));

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.