public class OAuthClient extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OAuthClient.AccessTokenResponse |
static class |
OAuthClient.AuthorizationCodeResponse |
Constructor and Description |
---|
OAuthClient(String baseUrl) |
public OAuthClient(String baseUrl)
public OAuthClient.AccessTokenResponse doAccessTokenRequest(String code, String password)
public OAuthClient.AccessTokenResponse doGrantAccessTokenRequest(String clientSecret, String username, String password) throws Exception
Exception
public org.apache.http.HttpResponse doLogout(String redirectUri, String sessionState) throws IOException
IOException
public OAuthClient.AccessTokenResponse doRefreshTokenRequest(String refreshToken, String password)
public AccessToken verifyToken(String token)
public void verifyCode(String code)
public RefreshToken verifyRefreshToken(String refreshToken)
public String getClientId()
public String getRedirectUri()
public String getLoginFormUrl()
public String getAccessTokenUrl()
public String getResourceOwnerPasswordCredentialGrantUrl()
public String getRefreshTokenUrl()
public OAuthClient realm(String realm)
public OAuthClient realmPublicKey(PublicKey key)
public OAuthClient clientId(String clientId)
public OAuthClient redirectUri(String redirectUri)
public OAuthClient responseType(String responseType)
public OAuthClient state(String state)
public String getRealm()
Copyright © 2015. All Rights Reserved.