Package x.oauth
Class TokenRequest
java.lang.Object
x.oauth.TokenRequest
Represents token request.
- Author:
- sakdsitt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringstatic final Stringprotected static final Stringstatic final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgetCode()getScope()voidsetClientId(String clientId) voidvoidvalidate()
-
Field Details
-
AUTHORIZATION_CODE
- See Also:
-
REFRESH_TOKEN
- See Also:
-
CLIENT_CREDENTIALS
- See Also:
-
PASSWORD
- See Also:
-
GRANT_TYPE
- See Also:
-
CODE
- See Also:
-
REDIRECT_URI
- See Also:
-
CLIENT_ID
- See Also:
-
CLIENT_SECRET
- See Also:
-
SCOPE
- See Also:
-
USERNAME
- See Also:
-
-
Constructor Details
-
TokenRequest
- Throws:
Exception
-
-
Method Details
-
validate
- Throws:
OAuthException
-
checkMandatoryParams
- Throws:
OAuthException
-
getUserId
-
setUserId
-
getGrantType
-
getCode
-
getRedirectUri
-
getClientId
-
getRefreshToken
-
setClientId
-
getScope
-
getUsername
-
getPassword
-
getClientSecret
-