Package net.jini.security

Examples of net.jini.security.AuthenticationPermission$AuthenticationPermissionCollection


     * @param actions 2-nd parameter for AuthenticationPermission constructor
     * @return created AuthenticationPermission instance
     * @throws rethrow any exception thrown by constructor
     */
    public AuthenticationPermission createAP(String name, String actions) {
        return new AuthenticationPermission(name, actions);
    }
View Full Code Here


     * @throws rethrow any exception thrown by constructor
     */
    public AuthenticationPermission createAP(String name, String actions) {
        logger.fine("Creating AuthenticationPermission with '" + name
                + "' target name and '" + actions + "' actions.");
        return new AuthenticationPermission(name, actions);
    }
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

    X509Certificate serverCert =
        getAuthManager().getServerCertificate(session);
    serverPrincipal = serverCert != null
        ? serverCert.getSubjectX500Principal() : null;
    if (serverPrincipal != null) {
        authPermission = new AuthenticationPermission(
      Collections.singleton(serverPrincipal),
      (clientPrincipal != null
       ? Collections.singleton(clientPrincipal) : null),
      "accept");
    }
View Full Code Here

  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

TOP

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

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.