use of org.wso2.securevault.secret.SecretCallbackHandler in project wso2-synapse by wso2.
the class Axis2SynapseController method initSharedSecretCallbackHandlerCache.
/**
* Initiating SharedSecretCallbackHandlerCache reusing an existing SecretCallbackHandler instance -
* a SecretCallbackHandler passed when start synapse.
*
* @param information ServerContextInformation instance
*/
private void initSharedSecretCallbackHandlerCache(ServerContextInformation information) {
SharedSecretCallbackHandlerCache cache = SharedSecretCallbackHandlerCache.getInstance();
Object handler = information.getProperty(SecurityConstants.PROP_SECRET_CALLBACK_HANDLER);
if (handler instanceof SecretCallbackHandler) {
cache.setSecretCallbackHandler((SecretCallbackHandler) handler);
}
}
Aggregations