com.worklight.wlclient.auth
Class AccessToken
- java.lang.Object
-
- com.worklight.wlclient.auth.AccessToken
-
public class AccessToken extends java.lang.Object
This class stores access-token data.
-
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getAsAuthorizationRequestHeader()
Returns the value of the access token in the required format for an authorization header.java.lang.String
getAsFormEncodedBodyParameter()
Returns the value of the access token in the required format for the body of an HTTP-request entity.java.lang.String
getValue()
Returns the value of the access token.
-
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Returns the value of the access token.- Returns:
- The value of the access token.
-
getAsAuthorizationRequestHeader
public java.lang.String getAsAuthorizationRequestHeader()
Returns the value of the access token in the required format for an authorization header.- Returns:
- The value of the access token in the required format for an authorization header.
-
getAsFormEncodedBodyParameter
public java.lang.String getAsFormEncodedBodyParameter()
Returns the value of the access token in the required format for the body of an HTTP-request entity.- Returns:
- The value of the access token in the required format for the body of an HTTP-request entity.
-
-