Examples of SecretManager


Examples of org.apache.hadoop.security.token.SecretManager

    if (env instanceof RegionCoprocessorEnvironment) {
      RegionCoprocessorEnvironment regionEnv =
          (RegionCoprocessorEnvironment)env;
      RpcServer server = regionEnv.getRegionServerServices().getRpcServer();
      if (server instanceof SecureServer) {
        SecretManager mgr = ((SecureServer)server).getSecretManager();
        if (mgr instanceof AuthenticationTokenSecretManager) {
          secretManager = (AuthenticationTokenSecretManager)mgr;
        }
      }
    }
View Full Code Here

Examples of org.apache.hadoop.security.token.SecretManager

        IdentityCoprocessor.class.getName());
    TEST_UTIL.startMiniCluster();
    HRegionServer rs = TEST_UTIL.getMiniHBaseCluster().getRegionServer(0);
    RpcServer server = rs.getRpcServer();
    assertTrue(server instanceof SecureServer);
    SecretManager mgr =
        ((SecureServer)server).getSecretManager();
    assertTrue(mgr instanceof AuthenticationTokenSecretManager);
    secretManager = (AuthenticationTokenSecretManager)mgr;
  }
View Full Code Here

Examples of org.apache.hadoop.security.token.SecretManager

    if (env instanceof RegionCoprocessorEnvironment) {
      RegionCoprocessorEnvironment regionEnv =
          (RegionCoprocessorEnvironment)env;
      RpcServer server = regionEnv.getRegionServerServices().getRpcServer();
      if (server instanceof SecureServer) {
        SecretManager mgr = ((SecureServer)server).getSecretManager();
        if (mgr instanceof AuthenticationTokenSecretManager) {
          secretManager = (AuthenticationTokenSecretManager)mgr;
        }
      }
    }
View Full Code Here

Examples of org.apache.hadoop.security.token.SecretManager

        IdentityCoprocessor.class.getName());
    TEST_UTIL.startMiniCluster();
    HRegionServer rs = TEST_UTIL.getMiniHBaseCluster().getRegionServer(0);
    RpcServer server = rs.getRpcServer();
    assertTrue(server instanceof SecureServer);
    SecretManager mgr =
        ((SecureServer)server).getSecretManager();
    assertTrue(mgr instanceof AuthenticationTokenSecretManager);
    secretManager = (AuthenticationTokenSecretManager)mgr;
  }
View Full Code Here

Examples of org.apache.hadoop.security.token.SecretManager

        IdentityCoprocessor.class.getName());
    TEST_UTIL.startMiniCluster();
    HRegionServer rs = TEST_UTIL.getMiniHBaseCluster().getRegionServer(0);
    RpcServer server = rs.getRpcServer();
    assertTrue(server instanceof SecureServer);
    SecretManager mgr =
        ((SecureServer)server).getSecretManager();
    assertTrue(mgr instanceof AuthenticationTokenSecretManager);
    secretManager = (AuthenticationTokenSecretManager)mgr;
  }
View Full Code Here

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

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

     * @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

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

     * @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

Examples of org.wso2.securevault.secret.SecretManager

     * @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

Examples of org.wso2.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
TOP
Copyright © 2018 www.massapi.com. 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.