FileDocCategorySizeDatePackage
ConnectorSecurityAdminServiceImpl.javaAPI DocGlassfish v2 API3594Fri May 04 22:34:24 BST 2007com.sun.enterprise.connectors

ConnectorSecurityAdminServiceImpl

public class ConnectorSecurityAdminServiceImpl extends ConnectorServiceImpl implements ConnectorAdminService
This is Security administration service. Performs funtionality of security map creation, deletion.
author
Srikanth P

Fields Summary
Constructors Summary
public ConnectorSecurityAdminServiceImpl()
Default constructor

         super();
     
Methods Summary
public AuthenticationServicegetAuthenticationService(java.lang.String rarName, java.lang.String poolName)
Obtain the authentication service associated with rar module. Currently only the BasicPassword authentication is supported.

rarName
Rar module Name
poolName
Name of the pool. Used for creation of BasicPasswordAuthenticationService


        ConnectorDescriptor cd =  _registry.getDescriptor(rarName);
        OutboundResourceAdapter obra = cd.getOutboundResourceAdapter();
        Set authMechs = obra.getAuthMechanisms();
        Iterator it = authMechs.iterator();
        while(it.hasNext()) {
            AuthMechanism authMechanism = (AuthMechanism)it.next();
            String mech = authMechanism.getAuthMechType();
            if(mech.equals("BasicPassword")) {
                return new BasicPasswordAuthenticationService(rarName,poolName);
            }
        }
        return null;