Class Authentication

java.lang.Object
com.datahub.authentication.Authentication

public class Authentication extends Object
Class representing an authenticated actor accessing DataHub.
  • Constructor Details

    • Authentication

      public Authentication(@Nonnull Actor authenticatedActor, @Nonnull String credentials)
    • Authentication

      public Authentication(@Nonnull Actor authenticatedActor, @Nonnull String credentials, @Nonnull Map<String,Object> claims)
  • Method Details

    • getActor

      public Actor getActor()
      Returns:
      Returns the authenticated actor
    • getCredentials

      public String getCredentials()
      Returns:
      Returns the credentials associated with the current request (e.g. the value of the "Authorization" header)
    • getClaims

      public Map<String,Object> getClaims()
      Returns:
      Returns an arbitrary set of claims resolved by the Authenticator