Class JwtAuthenticationToken

java.lang.Object
org.elasticsearch.xpack.security.authc.jwt.JwtAuthenticationToken
All Implemented Interfaces:
AuthenticationToken

public class JwtAuthenticationToken extends Object implements AuthenticationToken
An AuthenticationToken to hold JWT authentication related content.
  • Constructor Details

    • JwtAuthenticationToken

      public JwtAuthenticationToken(com.nimbusds.jwt.SignedJWT signedJWT, byte[] userCredentialsHash, @Nullable SecureString clientAuthenticationSharedSecret)
      Store a mandatory JWT and optional Shared Secret.
      Parameters:
      signedJWT - The JWT parsed from the end-user credentials
      userCredentialsHash - The hash of the end-user credentials is used to compute the key for user cache at the realm level. See also JwtRealm#authenticate.
      clientAuthenticationSharedSecret - URL-safe Shared Secret for Client authentication. Required by some JWT realms.
  • Method Details