public javax.management.ObjectName | create(java.lang.String name, java.lang.String providerType, java.lang.String providerClassname, java.util.Map optional)The underlying API is function-oriented mess. We actually have to "create" a new
message security (which might already exist) in order to create a provider-config.
This is a special-case compared to all the other ones.
final MessageSecurityConfig msc = (MessageSecurityConfig)getFactoryContainer();
final SecurityServiceConfig ss = (SecurityServiceConfig)(msc.getContainer());
final MessageSecurityConfig newMSC =
ss.createMessageSecurityConfig( msc.getAuthLayer(), name, providerType, providerClassname, optional );
// 'newMSC' and 'msc' should be the same.
final ProviderConfig providerConfig = newMSC.getProviderConfigMap().get( name );
return Util.getObjectName( providerConfig );
|