Java 类org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager 实例源码

项目:hadoop-oss    文件:DelegationTokenAuthenticationFilter.java   
@Override
public void init(FilterConfig filterConfig) throws ServletException {
  super.init(filterConfig);
  AuthenticationHandler handler = getAuthenticationHandler();
  AbstractDelegationTokenSecretManager dtSecretManager =
      (AbstractDelegationTokenSecretManager) filterConfig.getServletContext().
          getAttribute(DELEGATION_TOKEN_SECRET_MANAGER_ATTR);
  if (dtSecretManager != null && handler
      instanceof DelegationTokenAuthenticationHandler) {
    DelegationTokenAuthenticationHandler dtHandler =
        (DelegationTokenAuthenticationHandler) getAuthenticationHandler();
    dtHandler.setExternalDelegationTokenSecretManager(dtSecretManager);
  }
  if (handler instanceof PseudoAuthenticationHandler ||
      handler instanceof PseudoDelegationTokenAuthenticationHandler) {
    setHandlerAuthMethod(SaslRpcServer.AuthMethod.SIMPLE);
  }
  if (handler instanceof KerberosAuthenticationHandler ||
      handler instanceof KerberosDelegationTokenAuthenticationHandler) {
    setHandlerAuthMethod(SaslRpcServer.AuthMethod.KERBEROS);
  }

  // proxyuser configuration
  Configuration conf = getProxyuserConfiguration(filterConfig);
  ProxyUsers.refreshSuperUserGroupsConfiguration(conf, PROXYUSER_PREFIX);
}
项目:hadoop    文件:DelegationTokenAuthenticationFilter.java   
@Override
public void init(FilterConfig filterConfig) throws ServletException {
  super.init(filterConfig);
  AuthenticationHandler handler = getAuthenticationHandler();
  AbstractDelegationTokenSecretManager dtSecretManager =
      (AbstractDelegationTokenSecretManager) filterConfig.getServletContext().
          getAttribute(DELEGATION_TOKEN_SECRET_MANAGER_ATTR);
  if (dtSecretManager != null && handler
      instanceof DelegationTokenAuthenticationHandler) {
    DelegationTokenAuthenticationHandler dtHandler =
        (DelegationTokenAuthenticationHandler) getAuthenticationHandler();
    dtHandler.setExternalDelegationTokenSecretManager(dtSecretManager);
  }
  if (handler instanceof PseudoAuthenticationHandler ||
      handler instanceof PseudoDelegationTokenAuthenticationHandler) {
    setHandlerAuthMethod(SaslRpcServer.AuthMethod.SIMPLE);
  }
  if (handler instanceof KerberosAuthenticationHandler ||
      handler instanceof KerberosDelegationTokenAuthenticationHandler) {
    setHandlerAuthMethod(SaslRpcServer.AuthMethod.KERBEROS);
  }

  // proxyuser configuration
  Configuration conf = getProxyuserConfiguration(filterConfig);
  ProxyUsers.refreshSuperUserGroupsConfiguration(conf, PROXYUSER_PREFIX);
}
项目:aliyun-oss-hadoop-fs    文件:DelegationTokenAuthenticationFilter.java   
@Override
public void init(FilterConfig filterConfig) throws ServletException {
  super.init(filterConfig);
  AuthenticationHandler handler = getAuthenticationHandler();
  AbstractDelegationTokenSecretManager dtSecretManager =
      (AbstractDelegationTokenSecretManager) filterConfig.getServletContext().
          getAttribute(DELEGATION_TOKEN_SECRET_MANAGER_ATTR);
  if (dtSecretManager != null && handler
      instanceof DelegationTokenAuthenticationHandler) {
    DelegationTokenAuthenticationHandler dtHandler =
        (DelegationTokenAuthenticationHandler) getAuthenticationHandler();
    dtHandler.setExternalDelegationTokenSecretManager(dtSecretManager);
  }
  if (handler instanceof PseudoAuthenticationHandler ||
      handler instanceof PseudoDelegationTokenAuthenticationHandler) {
    setHandlerAuthMethod(SaslRpcServer.AuthMethod.SIMPLE);
  }
  if (handler instanceof KerberosAuthenticationHandler ||
      handler instanceof KerberosDelegationTokenAuthenticationHandler) {
    setHandlerAuthMethod(SaslRpcServer.AuthMethod.KERBEROS);
  }

  // proxyuser configuration
  Configuration conf = getProxyuserConfiguration(filterConfig);
  ProxyUsers.refreshSuperUserGroupsConfiguration(conf, PROXYUSER_PREFIX);
}
项目:big-c    文件:DelegationTokenAuthenticationFilter.java   
@Override
public void init(FilterConfig filterConfig) throws ServletException {
  super.init(filterConfig);
  AuthenticationHandler handler = getAuthenticationHandler();
  AbstractDelegationTokenSecretManager dtSecretManager =
      (AbstractDelegationTokenSecretManager) filterConfig.getServletContext().
          getAttribute(DELEGATION_TOKEN_SECRET_MANAGER_ATTR);
  if (dtSecretManager != null && handler
      instanceof DelegationTokenAuthenticationHandler) {
    DelegationTokenAuthenticationHandler dtHandler =
        (DelegationTokenAuthenticationHandler) getAuthenticationHandler();
    dtHandler.setExternalDelegationTokenSecretManager(dtSecretManager);
  }
  if (handler instanceof PseudoAuthenticationHandler ||
      handler instanceof PseudoDelegationTokenAuthenticationHandler) {
    setHandlerAuthMethod(SaslRpcServer.AuthMethod.SIMPLE);
  }
  if (handler instanceof KerberosAuthenticationHandler ||
      handler instanceof KerberosDelegationTokenAuthenticationHandler) {
    setHandlerAuthMethod(SaslRpcServer.AuthMethod.KERBEROS);
  }

  // proxyuser configuration
  Configuration conf = getProxyuserConfiguration(filterConfig);
  ProxyUsers.refreshSuperUserGroupsConfiguration(conf, PROXYUSER_PREFIX);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:DelegationTokenAuthenticationFilter.java   
@Override
public void init(FilterConfig filterConfig) throws ServletException {
  super.init(filterConfig);
  AuthenticationHandler handler = getAuthenticationHandler();
  AbstractDelegationTokenSecretManager dtSecretManager =
      (AbstractDelegationTokenSecretManager) filterConfig.getServletContext().
          getAttribute(DELEGATION_TOKEN_SECRET_MANAGER_ATTR);
  if (dtSecretManager != null && handler
      instanceof DelegationTokenAuthenticationHandler) {
    DelegationTokenAuthenticationHandler dtHandler =
        (DelegationTokenAuthenticationHandler) getAuthenticationHandler();
    dtHandler.setExternalDelegationTokenSecretManager(dtSecretManager);
  }
  if (handler instanceof PseudoAuthenticationHandler ||
      handler instanceof PseudoDelegationTokenAuthenticationHandler) {
    setHandlerAuthMethod(SaslRpcServer.AuthMethod.SIMPLE);
  }
  if (handler instanceof KerberosAuthenticationHandler ||
      handler instanceof KerberosDelegationTokenAuthenticationHandler) {
    setHandlerAuthMethod(SaslRpcServer.AuthMethod.KERBEROS);
  }

  // proxyuser configuration
  Configuration conf = getProxyuserConfiguration(filterConfig);
  ProxyUsers.refreshSuperUserGroupsConfiguration(conf, PROXYUSER_PREFIX);
}
项目:hops    文件:DelegationTokenAuthenticationFilter.java   
@Override
public void init(FilterConfig filterConfig) throws ServletException {
  super.init(filterConfig);
  AuthenticationHandler handler = getAuthenticationHandler();
  AbstractDelegationTokenSecretManager dtSecretManager =
      (AbstractDelegationTokenSecretManager) filterConfig.getServletContext().
          getAttribute(DELEGATION_TOKEN_SECRET_MANAGER_ATTR);
  if (dtSecretManager != null && handler
      instanceof DelegationTokenAuthenticationHandler) {
    DelegationTokenAuthenticationHandler dtHandler =
        (DelegationTokenAuthenticationHandler) getAuthenticationHandler();
    dtHandler.setExternalDelegationTokenSecretManager(dtSecretManager);
  }
  if (handler instanceof PseudoAuthenticationHandler ||
      handler instanceof PseudoDelegationTokenAuthenticationHandler) {
    setHandlerAuthMethod(SaslRpcServer.AuthMethod.SIMPLE);
  }
  if (handler instanceof KerberosAuthenticationHandler ||
      handler instanceof KerberosDelegationTokenAuthenticationHandler) {
    setHandlerAuthMethod(SaslRpcServer.AuthMethod.KERBEROS);
  }

  // proxyuser configuration
  Configuration conf = getProxyuserConfiguration(filterConfig);
  ProxyUsers.refreshSuperUserGroupsConfiguration(conf, PROXYUSER_PREFIX);
}
项目:hadoop    文件:RMDelegationTokenIdentifier.java   
@Private
public static void setSecretManager(
    AbstractDelegationTokenSecretManager<RMDelegationTokenIdentifier> secretManager,
    InetSocketAddress serviceAddress) {
  localSecretManager = secretManager;
  localServiceAddress = serviceAddress;
}
项目:aliyun-oss-hadoop-fs    文件:RMDelegationTokenIdentifier.java   
@Private
public static void setSecretManager(
    AbstractDelegationTokenSecretManager<RMDelegationTokenIdentifier> secretManager,
    InetSocketAddress serviceAddress) {
  localSecretManager = secretManager;
  localServiceAddress = serviceAddress;
}
项目:big-c    文件:RMDelegationTokenIdentifier.java   
@Private
public static void setSecretManager(
    AbstractDelegationTokenSecretManager<RMDelegationTokenIdentifier> secretManager,
    InetSocketAddress serviceAddress) {
  localSecretManager = secretManager;
  localServiceAddress = serviceAddress;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:RMDelegationTokenIdentifier.java   
@Private
public static void setSecretManager(
    AbstractDelegationTokenSecretManager<RMDelegationTokenIdentifier> secretManager,
    InetSocketAddress serviceAddress) {
  localSecretManager = secretManager;
  localServiceAddress = serviceAddress;
}
项目:hadoop-plus    文件:RMDelegationTokenIdentifier.java   
@Private
public static void setSecretManager(
    AbstractDelegationTokenSecretManager<RMDelegationTokenIdentifier> secretManager,
    InetSocketAddress serviceAddress) {
  localSecretManager = secretManager;
  localServiceAddress = serviceAddress;
}
项目:hops    文件:RMDelegationTokenIdentifier.java   
@Private
public static void setSecretManager(
    AbstractDelegationTokenSecretManager<RMDelegationTokenIdentifier> secretManager,
    InetSocketAddress serviceAddress) {
  localSecretManager = secretManager;
  localServiceAddress = serviceAddress;
}
项目:hadoop-TCP    文件:RMDelegationTokenIdentifier.java   
@Private
public static void setSecretManager(
    AbstractDelegationTokenSecretManager<RMDelegationTokenIdentifier> secretManager,
    InetSocketAddress serviceAddress) {
  localSecretManager = secretManager;
  localServiceAddress = serviceAddress;
}
项目:hardfs    文件:RMDelegationTokenIdentifier.java   
@Private
public static void setSecretManager(
    AbstractDelegationTokenSecretManager<RMDelegationTokenIdentifier> secretManager,
    InetSocketAddress serviceAddress) {
  localSecretManager = secretManager;
  localServiceAddress = serviceAddress;
}
项目:hadoop-on-lustre2    文件:RMDelegationTokenIdentifier.java   
@Private
public static void setSecretManager(
    AbstractDelegationTokenSecretManager<RMDelegationTokenIdentifier> secretManager,
    InetSocketAddress serviceAddress) {
  localSecretManager = secretManager;
  localServiceAddress = serviceAddress;
}
项目:hadoop-oss    文件:DelegationTokenManager.java   
@VisibleForTesting
@SuppressWarnings("rawtypes")
public AbstractDelegationTokenSecretManager getDelegationTokenSecretManager() {
  return secretManager;
}
项目:hadoop    文件:RMAuthenticationFilter.java   
public static void setDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager<?> manager) {
  RMAuthenticationFilter.manager = manager;
}
项目:hadoop    文件:DelegationTokenManager.java   
@VisibleForTesting
@SuppressWarnings("rawtypes")
public AbstractDelegationTokenSecretManager getDelegationTokenSecretManager() {
  return secretManager;
}
项目:aliyun-oss-hadoop-fs    文件:RMAuthenticationFilter.java   
public static void setDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager<?> manager) {
  RMAuthenticationFilter.manager = manager;
}
项目:aliyun-oss-hadoop-fs    文件:DelegationTokenManager.java   
@VisibleForTesting
@SuppressWarnings("rawtypes")
public AbstractDelegationTokenSecretManager getDelegationTokenSecretManager() {
  return secretManager;
}
项目:big-c    文件:RMAuthenticationFilter.java   
public static void setDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager<?> manager) {
  RMAuthenticationFilter.manager = manager;
}
项目:big-c    文件:DelegationTokenManager.java   
@VisibleForTesting
@SuppressWarnings("rawtypes")
public AbstractDelegationTokenSecretManager getDelegationTokenSecretManager() {
  return secretManager;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:RMAuthenticationFilter.java   
public static void setDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager<?> manager) {
  RMAuthenticationFilter.manager = manager;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:DelegationTokenManager.java   
@VisibleForTesting
@SuppressWarnings("rawtypes")
public AbstractDelegationTokenSecretManager getDelegationTokenSecretManager() {
  return secretManager;
}
项目:hops    文件:RMAuthenticationFilter.java   
public static void setDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager<?> manager) {
  RMAuthenticationFilter.manager = manager;
}
项目:hops    文件:DelegationTokenManager.java   
@VisibleForTesting
@SuppressWarnings("rawtypes")
public AbstractDelegationTokenSecretManager getDelegationTokenSecretManager() {
  return secretManager;
}
项目:hadoop-oss    文件:DelegationTokenManager.java   
/**
 * Sets an external <code>DelegationTokenSecretManager</code> instance to
 * manage creation and verification of Delegation Tokens.
 * <p/>
 * This is useful for use cases where secrets must be shared across multiple
 * services.
 *
 * @param secretManager a <code>DelegationTokenSecretManager</code> instance
 */
public void setExternalDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager secretManager) {
  this.secretManager.stopThreads();
  this.secretManager = secretManager;
  managedSecretManager = false;
}
项目:hadoop    文件:DelegationTokenManager.java   
/**
 * Sets an external <code>DelegationTokenSecretManager</code> instance to
 * manage creation and verification of Delegation Tokens.
 * <p/>
 * This is useful for use cases where secrets must be shared across multiple
 * services.
 *
 * @param secretManager a <code>DelegationTokenSecretManager</code> instance
 */
public void setExternalDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager secretManager) {
  this.secretManager.stopThreads();
  this.secretManager = secretManager;
  managedSecretManager = false;
}
项目:aliyun-oss-hadoop-fs    文件:DelegationTokenManager.java   
/**
 * Sets an external <code>DelegationTokenSecretManager</code> instance to
 * manage creation and verification of Delegation Tokens.
 * <p/>
 * This is useful for use cases where secrets must be shared across multiple
 * services.
 *
 * @param secretManager a <code>DelegationTokenSecretManager</code> instance
 */
public void setExternalDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager secretManager) {
  this.secretManager.stopThreads();
  this.secretManager = secretManager;
  managedSecretManager = false;
}
项目:big-c    文件:DelegationTokenManager.java   
/**
 * Sets an external <code>DelegationTokenSecretManager</code> instance to
 * manage creation and verification of Delegation Tokens.
 * <p/>
 * This is useful for use cases where secrets must be shared across multiple
 * services.
 *
 * @param secretManager a <code>DelegationTokenSecretManager</code> instance
 */
public void setExternalDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager secretManager) {
  this.secretManager.stopThreads();
  this.secretManager = secretManager;
  managedSecretManager = false;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:DelegationTokenManager.java   
/**
 * Sets an external <code>DelegationTokenSecretManager</code> instance to
 * manage creation and verification of Delegation Tokens.
 * <p/>
 * This is useful for use cases where secrets must be shared across multiple
 * services.
 *
 * @param secretManager a <code>DelegationTokenSecretManager</code> instance
 */
public void setExternalDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager secretManager) {
  this.secretManager.stopThreads();
  this.secretManager = secretManager;
  managedSecretManager = false;
}
项目:hops    文件:DelegationTokenManager.java   
/**
 * Sets an external <code>DelegationTokenSecretManager</code> instance to
 * manage creation and verification of Delegation Tokens.
 * <p/>
 * This is useful for use cases where secrets must be shared across multiple
 * services.
 *
 * @param secretManager a <code>DelegationTokenSecretManager</code> instance
 */
public void setExternalDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager secretManager) {
  this.secretManager.stopThreads();
  this.secretManager = secretManager;
  managedSecretManager = false;
}
项目:hadoop-oss    文件:DelegationTokenAuthenticationHandler.java   
/**
 * Sets an external <code>DelegationTokenSecretManager</code> instance to
 * manage creation and verification of Delegation Tokens.
 * <p/>
 * This is useful for use cases where secrets must be shared across multiple
 * services.
 *
 * @param secretManager a <code>DelegationTokenSecretManager</code> instance
 */
public void setExternalDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager secretManager) {
  tokenManager.setExternalDelegationTokenSecretManager(secretManager);
}
项目:hadoop    文件:DelegationTokenAuthenticationHandler.java   
/**
 * Sets an external <code>DelegationTokenSecretManager</code> instance to
 * manage creation and verification of Delegation Tokens.
 * <p/>
 * This is useful for use cases where secrets must be shared across multiple
 * services.
 *
 * @param secretManager a <code>DelegationTokenSecretManager</code> instance
 */
public void setExternalDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager secretManager) {
  tokenManager.setExternalDelegationTokenSecretManager(secretManager);
}
项目:aliyun-oss-hadoop-fs    文件:DelegationTokenAuthenticationHandler.java   
/**
 * Sets an external <code>DelegationTokenSecretManager</code> instance to
 * manage creation and verification of Delegation Tokens.
 * <p/>
 * This is useful for use cases where secrets must be shared across multiple
 * services.
 *
 * @param secretManager a <code>DelegationTokenSecretManager</code> instance
 */
public void setExternalDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager secretManager) {
  tokenManager.setExternalDelegationTokenSecretManager(secretManager);
}
项目:big-c    文件:DelegationTokenAuthenticationHandler.java   
/**
 * Sets an external <code>DelegationTokenSecretManager</code> instance to
 * manage creation and verification of Delegation Tokens.
 * <p/>
 * This is useful for use cases where secrets must be shared across multiple
 * services.
 *
 * @param secretManager a <code>DelegationTokenSecretManager</code> instance
 */
public void setExternalDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager secretManager) {
  tokenManager.setExternalDelegationTokenSecretManager(secretManager);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:DelegationTokenAuthenticationHandler.java   
/**
 * Sets an external <code>DelegationTokenSecretManager</code> instance to
 * manage creation and verification of Delegation Tokens.
 * <p/>
 * This is useful for use cases where secrets must be shared across multiple
 * services.
 *
 * @param secretManager a <code>DelegationTokenSecretManager</code> instance
 */
public void setExternalDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager secretManager) {
  tokenManager.setExternalDelegationTokenSecretManager(secretManager);
}
项目:hops    文件:DelegationTokenAuthenticationHandler.java   
/**
 * Sets an external <code>DelegationTokenSecretManager</code> instance to
 * manage creation and verification of Delegation Tokens.
 * <p/>
 * This is useful for use cases where secrets must be shared across multiple
 * services.
 *
 * @param secretManager a <code>DelegationTokenSecretManager</code> instance
 */
public void setExternalDelegationTokenSecretManager(
    AbstractDelegationTokenSecretManager secretManager) {
  tokenManager.setExternalDelegationTokenSecretManager(secretManager);
}