public interface OAuth2Client
OAuth2.0 login extension interface Used to obtain OAuth 2.0 related information from a third party
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccesstoken(java.lang.String clientID, java.lang.String clientSecret, java.lang.String code, java.lang.String redirectUri)
Gets access to Token
|
java.lang.String |
getRedirectURI(java.lang.String clientID, java.lang.String state, java.lang.String redirectUri)
Gets the OAuth and jumps URI
|
java.lang.String |
getUserID(java.lang.String accesstoken)
Gets the username ID.
|
OAuthUserInfo |
getUserInfo(java.lang.String token, java.lang.String clientID, java.lang.String userID)
Gets user information
|
java.lang.String getRedirectURI(java.lang.String clientID, java.lang.String state, java.lang.String redirectUri)
Gets the OAuth and jumps URI
clientID
-state
-redirectUri
-java.lang.String getAccesstoken(java.lang.String clientID, java.lang.String clientSecret, java.lang.String code, java.lang.String redirectUri) throws java.io.IOException
Gets access to Token
clientID
-clientSecret
-code
-redirectUri
-java.io.IOException
java.lang.String getUserID(java.lang.String accesstoken) throws java.io.IOException
Gets the username ID.
accesstoken
-java.io.IOException
OAuthUserInfo getUserInfo(java.lang.String token, java.lang.String clientID, java.lang.String userID) throws java.io.IOException
Gets user information
token
-clientID
-userID
-java.io.IOException