Class BasicAuthorizationToken


  • public class BasicAuthorizationToken
    extends AuthorizationToken
    Implementation of the standard RFC 7617 Bearer authentication scheme token This implementation parses the token and makes the user name and password available through the API.
    Author:
    odeda
    • Constructor Detail

      • BasicAuthorizationToken

        public BasicAuthorizationToken()
      • BasicAuthorizationToken

        public BasicAuthorizationToken​(String token)
    • Method Detail

      • supports

        protected boolean supports​(String type)
        Description copied from class: AuthorizationToken
        Check whether an AuthorizationToken implementation supports the speciefied IANA HTTP Authentication Scheme Name
        Overrides:
        supports in class AuthorizationToken
        Parameters:
        type - IANA HTTP Authentication Scheme Name
        Returns:
        whether this implementation supports the specified name
      • getUsername

        public String getUsername()
      • getPassword

        public String getPassword()