Class BasicScheme

    • Constructor Detail

      • BasicScheme

        public BasicScheme()
        Deprecated.
        Default constructor for the basic authetication scheme.
        Since:
        3.0
    • Method Detail

      • getSchemeName

        public java.lang.String getSchemeName()
        Deprecated.
        Returns textual designation of the basic authentication scheme.
        Returns:
        basic
      • isComplete

        public boolean isComplete()
        Deprecated.
        Tests if the Basic authentication process has been completed.
        Returns:
        true if Basic authorization has been processed, false otherwise.
        Since:
        3.0
      • isConnectionBased

        public boolean isConnectionBased()
        Deprecated.
        Returns false. Basic authentication scheme is request based.
        Returns:
        false.
        Since:
        3.0
      • authenticate

        public java.lang.String authenticate​(Credentials credentials,
                                             HttpMethod method)
                                      throws AuthenticationException
        Deprecated.
        Produces basic authorization string for the given set of Credentials.
        Parameters:
        credentials - The set of credentials to be used for athentication
        method - The method being authenticated
        Returns:
        a basic authorization string
        Throws:
        InvalidCredentialsException - if authentication credentials are not valid or not applicable for this authentication scheme
        AuthenticationException - if authorization string cannot be generated due to an authentication failure
        Since:
        3.0
      • authenticate

        public static java.lang.String authenticate​(UsernamePasswordCredentials credentials,
                                                    java.lang.String charset)
        Deprecated.
        Returns a basic Authorization header value for the given UsernamePasswordCredentials and charset.
        Parameters:
        credentials - The credentials to encode.
        charset - The charset to use for encoding the credentials
        Returns:
        a basic authorization string
        Since:
        3.0