Class Authentication


  • public class Authentication
    extends java.lang.Object
    Class representing an authenticated actor accessing DataHub.
    • Constructor Summary

      Constructors 
      Constructor Description
      Authentication​(Actor authenticatedActor, java.lang.String credentials)  
      Authentication​(Actor authenticatedActor, java.lang.String credentials, java.util.Map<java.lang.String,​java.lang.Object> claims)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Actor getActor()  
      java.util.Map<java.lang.String,​java.lang.Object> getClaims()  
      java.lang.String getCredentials()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Authentication

        public Authentication​(@Nonnull
                              Actor authenticatedActor,
                              @Nonnull
                              java.lang.String credentials)
      • Authentication

        public Authentication​(@Nonnull
                              Actor authenticatedActor,
                              @Nonnull
                              java.lang.String credentials,
                              @Nonnull
                              java.util.Map<java.lang.String,​java.lang.Object> claims)
    • Method Detail

      • getActor

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

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

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