Class OAuth2InitialClientMessage
java.lang.Object
org.wildfly.security.mechanism.oauth2.OAuth2InitialClientMessage
Represents the initial client message for OAuth2 protocol.
- Author:
- Pedro Igor
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2InitialClientMessage(String authorizationId, String auth, byte[] messageBytes) Constructs a newOAuth2InitialClientMessageinstance. -
Method Summary
Modifier and TypeMethodDescriptiongetAuth()Returns the authorization information in form of a String.Returns the ID of the user to be authorized.byte[]Returns the byte array containing the message.booleanReturns whether the client provides a Bearer token.
-
Constructor Details
-
OAuth2InitialClientMessage
Constructs a newOAuth2InitialClientMessageinstance.- 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 Details
-
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
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:
Trueif the authorization information contains "Bearer",falseotherwise.
-