Package com.sun.enterprise.security.jauth

Examples of com.sun.enterprise.security.jauth.AuthPolicy


      boolean hasPolicy = false;
      ArrayList authContexts = new ArrayList();
      for (int i = 0; i < descriptors.size(); i++) {
    MessageSecurityDescriptor msd =
        (MessageSecurityDescriptor) descriptors.get(i);
    AuthPolicy requestPolicy =
        getAuthPolicy(msd.getRequestProtectionDescriptor());
    AuthPolicy responsePolicy =
        getAuthPolicy(msd.getResponseProtectionDescriptor());
     if (requestPolicy.authRequired()||responsePolicy.authRequired()) {
        authContexts.add
      (getAuthContext
       (authLayer,provider,requestPolicy,responsePolicy,cbh));
        hasPolicy = true;
    } else {
View Full Code Here


  for (int i = 0; defaultContext_ == null && i < descriptors.size(); i++) {

      MessageSecurityDescriptor msd = (MessageSecurityDescriptor) descriptors.get(i);

      AuthPolicy requestPolicy =
    getAuthPolicy(msd.getRequestProtectionDescriptor());

      AuthPolicy responsePolicy =
    getAuthPolicy(msd.getResponseProtectionDescriptor());

      boolean noProtection = (!requestPolicy.authRequired() &&
            !responsePolicy.authRequired());

      // if there is one policy, and it is null set the associated context as the
      // defaultContext used for all messages.
      if (i==0 && onePolicy_ && noProtection) {
    defaultContext_ = explicitNull;
View Full Code Here

    } else if (recipient.equals(AuthPolicy.AFTER_CONTENT)) {
        beforeContent = false;
    }
      }
  }
  return new AuthPolicy(sourceAuthType,recipientAuth,beforeContent);
    }
View Full Code Here

      boolean hasPolicy = false;
      ArrayList authContexts = new ArrayList();
      for (int i = 0; i < descriptors.size(); i++) {
    MessageSecurityDescriptor msd =
        (MessageSecurityDescriptor) descriptors.get(i);
    AuthPolicy requestPolicy =
        getAuthPolicy(msd.getRequestProtectionDescriptor());
    AuthPolicy responsePolicy =
        getAuthPolicy(msd.getResponseProtectionDescriptor());
     if (requestPolicy.authRequired()||responsePolicy.authRequired()) {
        authContexts.add
      (getAuthContext
       (authLayer,provider,requestPolicy,responsePolicy,cbh));
        hasPolicy = true;
    } else {
View Full Code Here

                        entry.getResponsePolicy(), handler, map);
                } else if (newModule instanceof
                        com.sun.enterprise.security.jauth.ServerAuthModule) {
                    com.sun.enterprise.security.jauth.ServerAuthModule sam0 =
                        (com.sun.enterprise.security.jauth.ServerAuthModule)newModule;
                    AuthPolicy requestPolicy =
                            (entry.getRequestPolicy() != null) ?
                            new AuthPolicy(entry.getRequestPolicy()) : null;

                    AuthPolicy responsePolicy =
                            (entry.getResponsePolicy() != null) ?
                            new AuthPolicy(entry.getResponsePolicy()) : null;

                    sam0.initialize(requestPolicy, responsePolicy,
                        handler, map);
                }
            } else { // CLIENT
                if (newModule instanceof ClientAuthModule) {
                    ClientAuthModule cam = (ClientAuthModule)newModule;
                    cam.initialize(entry.getRequestPolicy(),
                        entry.getResponsePolicy(), handler, map);
                } else if (newModule instanceof
                        com.sun.enterprise.security.jauth.ClientAuthModule) {
                    com.sun.enterprise.security.jauth.ClientAuthModule cam0 =
                        (com.sun.enterprise.security.jauth.ClientAuthModule)newModule;
                    AuthPolicy requestPolicy =
      new AuthPolicy(entry.getRequestPolicy());

        AuthPolicy responsePolicy =
      new AuthPolicy(entry.getResponsePolicy());

                    cam0.initialize(requestPolicy,responsePolicy,
                        handler, map);
                }
            }
View Full Code Here

                    com.sun.enterprise.security.jauth.ServerAuthModule sam0 =
                        (com.sun.enterprise.security.jauth.ServerAuthModule)
      newModule;

                    AuthPolicy requestPolicy =
                            (entry.getRequestPolicy() != null) ?
                            new AuthPolicy(entry.getRequestPolicy()) : null;

                    AuthPolicy responsePolicy =
                            (entry.getResponsePolicy() != null) ?
                            new AuthPolicy(entry.getResponsePolicy()) : null;

                    sam0.initialize(requestPolicy, responsePolicy,
                        handler, map);
                }
            } else { // CLIENT
                if (newModule instanceof ClientAuthModule) {
                    ClientAuthModule cam = (ClientAuthModule)newModule;
                    cam.initialize(entry.getRequestPolicy(),
                        entry.getResponsePolicy(), handler, map);
                } else if (newModule instanceof
        com.sun.enterprise.security.jauth.ClientAuthModule) {

                    com.sun.enterprise.security.jauth.ClientAuthModule cam0 =
                        (com.sun.enterprise.security.jauth.ClientAuthModule)
      newModule;

                    AuthPolicy requestPolicy =
      new AuthPolicy(entry.getRequestPolicy());

        AuthPolicy responsePolicy =
      new AuthPolicy(entry.getResponsePolicy());

                    cam0.initialize(requestPolicy,responsePolicy,
                        handler, map);
                }
            }
View Full Code Here

                    com.sun.enterprise.security.jauth.ServerAuthModule sam0 =
                        (com.sun.enterprise.security.jauth.ServerAuthModule)
      newModule;

                    AuthPolicy requestPolicy =
                            (entry.getRequestPolicy() != null) ?
                            new AuthPolicy(entry.getRequestPolicy()) : null;

                    AuthPolicy responsePolicy =
                            (entry.getResponsePolicy() != null) ?
                            new AuthPolicy(entry.getResponsePolicy()) : null;

                    sam0.initialize(requestPolicy, responsePolicy,
                        handler, map);
                }
            } else { // CLIENT
                if (newModule instanceof ClientAuthModule) {
                    ClientAuthModule cam = (ClientAuthModule)newModule;
                    cam.initialize(entry.getRequestPolicy(),
                        entry.getResponsePolicy(), handler, map);
                } else if (newModule instanceof
        com.sun.enterprise.security.jauth.ClientAuthModule) {

                    com.sun.enterprise.security.jauth.ClientAuthModule cam0 =
                        (com.sun.enterprise.security.jauth.ClientAuthModule)
      newModule;

                    AuthPolicy requestPolicy =
      new AuthPolicy(entry.getRequestPolicy());

        AuthPolicy responsePolicy =
      new AuthPolicy(entry.getResponsePolicy());

                    cam0.initialize(requestPolicy,responsePolicy,
                        handler, map);
                }
            }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.security.jauth.AuthPolicy

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.