Search in sources :

Example 1 with SecretCallbackHandler

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);
    }
}
Also used : SecretCallbackHandler(org.wso2.securevault.secret.SecretCallbackHandler) SharedSecretCallbackHandlerCache(org.wso2.securevault.secret.handler.SharedSecretCallbackHandlerCache)

Aggregations

SecretCallbackHandler (org.wso2.securevault.secret.SecretCallbackHandler)1 SharedSecretCallbackHandlerCache (org.wso2.securevault.secret.handler.SharedSecretCallbackHandlerCache)1