Package net.jini.security

Examples of net.jini.security.AuthenticationPermission$Data


  X509Certificate cert)
    {
  Set client = Collections.singleton(cert.getSubjectX500Principal());
  Set server = (serverPrincipal == null)
      ? null : Collections.singleton(serverPrincipal);
  return new AuthenticationPermission(client, server, "connect");
    }
View Full Code Here


      for (Iterator iter = this.serverPrincipals.iterator();
     iter.hasNext();
     i++)
      {
    Principal p = (Principal) iter.next();
    listenPermissions[i] = new AuthenticationPermission(
        Collections.singleton(p), null, "listen");
      }
  }
  if (this.serverPrincipals == null ||
      /* Don't use current subject without any permission */
 
View Full Code Here

  if (sm != null) {
      for (Iterator iter = result.iterator(); iter.hasNext(); ) {
    Principal p = (Principal) iter.next();
    try {
        sm.checkPermission(
      new AuthenticationPermission(
          Collections.singleton(p), null, "listen"));
    } catch (SecurityException e) {
        logger.log(Levels.HANDLED,
             "compute principals for server endpoint " +
             "caught exception",
View Full Code Here

    continue;
      } else if (context.server == UNKNOWN_PRINCIPAL) {
    /* Server not known -- can't check any permissions */
    break;
      }
      AuthenticationPermission p = new AuthenticationPermission(
    Collections.singleton(context.client),
    Collections.singleton(context.server),
    "connect");
      Object value = perms.get(p);
      if (Boolean.FALSE.equals(value)) {
View Full Code Here

    /**
     * Return an instance with the given target and connect action.
     */
    public static AuthenticationPermission cp(String name) {
  return new AuthenticationPermission(name, "connect");
    }
View Full Code Here

    /**
     * Return an instance with the given target and delegate action.
     */
    public static AuthenticationPermission dp(String name) {
  return new AuthenticationPermission(name, "delegate");
    }
View Full Code Here

    /**
     * Return an instance with the given target and accept action.
     */
    public static AuthenticationPermission ap(String name) {
  return new AuthenticationPermission(name, "accept");
    }
View Full Code Here

    /**
     * Return an instance with the given target and connect+accept actions.
     */
    public static AuthenticationPermission cap(String name) {
  return new AuthenticationPermission(name, "connect,accept");
    }
View Full Code Here

    /**
     * Return an instance with the given target and delegate+accept actions.
     */
    public static AuthenticationPermission dap(String name) {
  return new AuthenticationPermission(name, "delegate,accept");
    }
View Full Code Here

    /**
     * Return an instance with the given target and listen action.
     */
    public static AuthenticationPermission lp(String name) {
  return new AuthenticationPermission(name, "listen");
    }
View Full Code Here

TOP

Related Classes of net.jini.security.AuthenticationPermission$Data

Copyright © 2018 www.massapicom. 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.