FileDocCategorySizeDatePackage
MessageSecurityConfigFactory.javaAPI DocGlassfish v2 API4848Fri May 04 22:23:20 BST 2007com.sun.enterprise.management.config

MessageSecurityConfigFactory

public final class MessageSecurityConfigFactory extends ConfigFactory

Fields Summary
private final com.sun.enterprise.management.support.oldconfig.OldSecurityServiceMBean
mOldSecurityServiceMBean
private final com.sun.enterprise.management.support.oldconfig.OldConfigsMBean
mOldConfigs
Constructors Summary
public MessageSecurityConfigFactory(ConfigFactoryCallback callbacks)

		super( callbacks );
		
		mOldSecurityServiceMBean	=
			getOldConfigProxies().getOldSecurityServiceMBean( getConfigName() );
        
        mOldConfigs = getOldConfigProxies().getOldConfigsMBean();
	
Methods Summary
public javax.management.ObjectNamecreate(java.lang.String authLayer, java.lang.String providerID, java.lang.String providerType, java.lang.String providerClassname, java.util.Map optional)

        final String requestAuthSource  = null;
        final String requestAuthRecipient  = null;
        final String responseAuthSource  = null;
        final String responseAuthRecipient  = null;
        final boolean   isDefaultProvider   = false;
        final java.util.Properties props  = null;
        final String targetName = getConfigName();
        
        final ObjectName provider = mOldConfigs.createMessageSecurityProvider(
            authLayer,
            providerID,
            providerType,
            providerClassname,
            requestAuthSource,
            requestAuthRecipient,
            responseAuthSource,
            responseAuthRecipient,
            isDefaultProvider,
            props,
            targetName
            );
        // the resulting MBean is the *provider*, NOT the type=message-security mbean
        getLogger().info( "OBJECTNAME: " + JMXUtil.toString( provider ) );
        
        final ObjectName providerObjectName = finish( provider, null );
        final ProviderConfig providerConfig = (ProviderConfig)
            Util.getExtra(getFactoryContainer()).getProxyFactory().getProxy( providerObjectName );
        
		final ObjectName amxName = Util.getExtra(providerConfig.getContainer()).getObjectName();
        
		return amxName;
	
protected final voidremoveByName(java.lang.String authLayer)

		mOldSecurityServiceMBean.removeMessageSecurityConfigByAuthLayer( authLayer );