Class OAuth2InitialClientMessage
- java.lang.Object
-
- org.wildfly.security.mechanism.oauth2.OAuth2InitialClientMessage
-
public class OAuth2InitialClientMessage extends Object
Represents the initial client message for OAuth2 protocol.- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description OAuth2InitialClientMessage(String authorizationId, String auth, byte[] messageBytes)Constructs a newOAuth2InitialClientMessageinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuth()Returns the authorization information in form of a String.StringgetAuthorizationId()Returns the ID of the user to be authorized.byte[]getMessage()Returns the byte array containing the message.booleanisBearerToken()Returns whether the client provides a Bearer token.
-
-
-
Constructor Detail
-
OAuth2InitialClientMessage
public OAuth2InitialClientMessage(String authorizationId, String auth, byte[] messageBytes)
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 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:
Trueif the authorization information contains "Bearer",falseotherwise.
-
-