Class ApiKeyService.ApiKeyCredentials

java.lang.Object
org.elasticsearch.xpack.security.authc.ApiKeyService.ApiKeyCredentials
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.xpack.core.security.authc.AuthenticationToken
Enclosing class:
ApiKeyService

public static final class ApiKeyService.ApiKeyCredentials extends Object implements org.elasticsearch.xpack.core.security.authc.AuthenticationToken, Closeable
  • Constructor Details

    • ApiKeyCredentials

      public ApiKeyCredentials(String id, org.elasticsearch.common.settings.SecureString key)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • principal

      public String principal()
      Specified by:
      principal in interface org.elasticsearch.xpack.core.security.authc.AuthenticationToken
    • credentials

      public Object credentials()
      Specified by:
      credentials in interface org.elasticsearch.xpack.core.security.authc.AuthenticationToken
    • clearCredentials

      public void clearCredentials()
      Specified by:
      clearCredentials in interface org.elasticsearch.xpack.core.security.authc.AuthenticationToken