Package org.apache.synapse.securevault.secret

Examples of org.apache.synapse.securevault.secret.SecretManager


            // if the server is running on production mode we need to initialize the secret manager
            // before the server state to be ServerState.INITIALIZABLE
            if (deploymentMode != null && PRODUCTION_MODE.equals(deploymentMode.trim())) {

                SecretManager secretManager = SecretManager.getInstance();
                if (secretManager.isInitialized()) {
                    return ServerState.INITIALIZABLE;
                } else {
                    secretManager.init(SynapsePropertiesLoader.loadSynapseProperties());
                    if (secretManager.isInitialized()) {
                        return ServerState.INITIALIZABLE;
                    }
                }
               
            } else {
View Full Code Here


     * @param aliasPasword alias password
     * @return if the SecretManager is initiated , then , get the corresponding secret
     *         , else return alias itself
     */
    private String getActualPassword(String aliasPasword) {
        SecretManager secretManager = SecretManager.getInstance();
        if (secretManager.isInitialized()) {
            return secretManager.getSecret(aliasPasword);
        }
        return aliasPasword;
    }
View Full Code Here

     * @param aliasPasword alias password
     * @return if the SecretManager is initiated , then , get the corresponding secret
     *         , else return alias itself
     */
    private String getActualPassword(String aliasPasword) {
        SecretManager secretManager = SecretManager.getInstance();
        if (secretManager.isInitialized()) {
            return secretManager.getSecret(aliasPasword);
        }
        return aliasPasword;
    }
View Full Code Here

TOP

Related Classes of org.apache.synapse.securevault.secret.SecretManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.