src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/security/SecurityContext.java
public void init(
      ApplicationConfiguration appConf,
      JwtAuthenticator jwtAuth,
      JwtGenerator<CommonProfile> jwtGen,
      LdapAuthenticator ldapAuthenticator) {
    this.applicationConfiguration = appConf;
    this.jwtAuthenticator = jwtAuth;
    this.jwtGenerator = jwtGen;
    this.ldapAuthenticator = ldapAuthenticator;

    this.adminUsers = new UserSet(appConf.getAdminUsers());
    this.writeUsers = new UserSet(appConf.getWriteUsers());
    this.readOnlyUsers = new UserSet(appConf.getReadOnlyUsers());
    this.cacheReaderUsers = new UserSet(appConf.getCacheReaderUsers());
    this.localOnlyUsers = new UserPasswordSet(appConf.getLocalOnlyUsers());

    this.init = true;
  }
/**
   * Initializes the authentication and authorization of NNA.
   *
   * @param appConf the security configuration
   * @param jwtAuth the JWT authentication object
   * @param jwtGen the JWT generator object
   * @param ldapAuthenticator ldap authenticator
   */
Initializes the authentication and authorization of NNA.
@param appConf the security configuration
@param jwtAuth the JWT authentication object
@param jwtGen the JWT generator object
@param ldapAuthenticator ldap authenticator
Initializes the authentication and authorization of NNA . @param appConf the security configuration @param jwtAuth the JWT authentication object @param jwtGen the JWT generator object @param ldapAuthenticator ldap authenticator
public void init(
      ApplicationConfiguration appConf,
      JwtAuthenticator jwtAuth,
      JwtGenerator<CommonProfile> jwtGen,
      LdapAuthenticator ldapAuthenticator) {
    this.applicationConfiguration = appConf;
    this.jwtAuthenticator = jwtAuth;
    this.jwtGenerator = jwtGen;
    this.ldapAuthenticator = ldapAuthenticator;
    this.adminUsers = new UserSet(appConf.getAdminUsers());
    this.writeUsers = new UserSet(appConf.getWriteUsers());
    this.readOnlyUsers = new UserSet(appConf.getReadOnlyUsers());
    this.cacheReaderUsers = new UserSet(appConf.getCacheReaderUsers());
    this.localOnlyUsers = new UserPasswordSet(appConf.getLocalOnlyUsers());
    this.init = true;
  }
public void init ( ApplicationConfiguration appConf , JwtAuthenticator jwtAuth , JwtGenerator < CommonProfile > jwtGen , LdapAuthenticator ldapAuthenticator ) { this . applicationConfiguration = appConf ; this . jwtAuthenticator = jwtAuth ; this . jwtGenerator = jwtGen ; this . ldapAuthenticator = ldapAuthenticator ; this . adminUsers = new UserSet ( appConf . getAdminUsers ( ) ) ; this . writeUsers = new UserSet ( appConf . getWriteUsers ( ) ) ; this . readOnlyUsers = new UserSet ( appConf . getReadOnlyUsers ( ) ) ; this . cacheReaderUsers = new UserSet ( appConf . getCacheReaderUsers ( ) ) ; this . localOnlyUsers = new UserPasswordSet ( appConf . getLocalOnlyUsers ( ) ) ; this . init = true ; }
Initializes the authentication and authorization of NNA.
Initializes the authentication and authorization of NNA .