Package com.force.api
Class Auth
java.lang.Object
com.force.api.Auth
public class Auth extends Object
-
Constructor Summary
Constructors Constructor Description Auth() -
Method Summary
Modifier and Type Method Description static ApiSessionauthenticate(ApiConfig c)static ApiSessioncompleteOAuthWebServerFlow(AuthorizationResponse res)static ApiSessionoauthLoginPasswordFlow(ApiConfig c)static ApiSessionrefreshOauthTokenFlow(ApiConfig config, String refreshToken)static voidrevokeToken(ApiConfig config, String token)revokes a token.static ApiSessionsoaploginPasswordFlow(ApiConfig c)static StringstartOAuthWebServerFlow(AuthorizationRequest req)
-
Constructor Details
-
Auth
public Auth()
-
-
Method Details
-
oauthLoginPasswordFlow
-
soaploginPasswordFlow
-
startOAuthWebServerFlow
-
completeOAuthWebServerFlow
-
refreshOauthTokenFlow
-
revokeToken
revokes a token. Works with both access token and refresh token- Parameters:
config- appropriate ApiConfigtoken- either an access token or a refresh token
-
authenticate
-