Class DefaultCredentials

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultCredentials​(@NonNull java.lang.String password, @NonNull java.lang.String userName)
      Creates a new object containing a token that is valid for Basic authentication scheme.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getAuthenticationToken()
      Returns the authorization token to be sent to Pravega.
      java.lang.String getAuthenticationType()
      Returns the authentication type.
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • DefaultCredentials

        public DefaultCredentials​(@NonNull
                                  @NonNull java.lang.String password,
                                  @NonNull
                                  @NonNull java.lang.String userName)
        Creates a new object containing a token that is valid for Basic authentication scheme. The object encapsulates a token value comprising of a Base64 encoded value of ":".
        Parameters:
        password - the password
        userName - the user name
    • Method Detail

      • getAuthenticationType

        public java.lang.String getAuthenticationType()
        Description copied from interface: Credentials
        Returns the authentication type. Pravega can support multiple authentication types in a single deployment.
        Specified by:
        getAuthenticationType in interface Credentials
        Returns:
        the authentication type expected by the these credentials.
      • getAuthenticationToken

        public java.lang.String getAuthenticationToken()
        Description copied from interface: Credentials
        Returns the authorization token to be sent to Pravega.
        Specified by:
        getAuthenticationToken in interface Credentials
        Returns:
        A token in token68-compatible format (as defined by RFC 7235).
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object