Package com.sun.enterprise.deployment

Examples of com.sun.enterprise.deployment.AuthMechanism


  }

  //auth mechanism info
        if (authMechs != null) {
          for (;authMechs.hasNext();) {
      AuthMechanism auth = (AuthMechanism) authMechs.next();
      Node authNode = appendChild(parent, ConnectorTagNames.AUTH_MECHANISM);
      appendTextChild(authNode, TagNames.DESCRIPTION, auth.getDescription());
      appendTextChild(authNode, ConnectorTagNames.AUTH_MECH_TYPE, auth.getAuthMechType());  
      appendTextChild(authNode, ConnectorTagNames.CREDENTIAL_INTF, auth.getCredentialInterface())
          }
        }
  return parent;
    }
View Full Code Here


                boolean ignore = false;
                OutboundResourceAdapter ora = getOutbound(desc);
                Set ddAuthMechanisms = ora.getAuthMechanisms();

                for (Object o : ddAuthMechanisms) {
                    AuthMechanism ddAuthMechanism = (AuthMechanism) o;
                    if (ddAuthMechanism.getAuthMechType().equals(auth.authMechanism())) {
                        ignore = true;
                        break;
                    }
                }

                // if it was not specified in DD, add it to connector-descriptor
                if (!ignore) {
                    String credentialInterfaceName = ora.getCredentialInterfaceName(auth.credentialInterface());
                    //XXX: Siva: For now use the first provided description
                    String description = "";
                    if(auth.description().length > 0){
                        description = auth.description()[0];
                    }
                    AuthMechanism authM = new AuthMechanism(description, authMechInt, credentialInterfaceName);
                    ora.addAuthMechanism(authM);
                }
            }
        }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.AuthMechanism

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.