Class OAuth2InitialClientMessage


  • public class OAuth2InitialClientMessage
    extends Object
    Represents the initial client message for OAuth2 protocol.
    Author:
    Pedro Igor
    • Constructor Detail

      • OAuth2InitialClientMessage

        public OAuth2InitialClientMessage​(String authorizationId,
                                          String auth,
                                          byte[] messageBytes)
        Constructs a new OAuth2InitialClientMessage instance.
        Parameters:
        authorizationId - the ID of the user to be authorized.
        auth - the authorization information in form of a String.
        messageBytes - the byte array containing the message.
    • Method Detail

      • getAuthorizationId

        public String getAuthorizationId()
        Returns the ID of the user to be authorized.
        Returns:
        the ID of the user to be authorized.
      • getMessage

        public byte[] getMessage()
        Returns the byte array containing the message.
        Returns:
        the byte array containing the message.
      • getAuth

        public String getAuth()
        Returns the authorization information in form of a String.
        Returns:
        the authorization information in form of a String.
      • isBearerToken

        public boolean isBearerToken()
        Returns whether the client provides a Bearer token.
        Returns:
        True if the authorization information contains "Bearer", false otherwise.