public javax.management.ObjectName | create(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;
|