public class Oauth2Credentials extends Object implements Credentials
OAuth2Auth provider| Constructor and Description |
|---|
Oauth2Credentials() |
Oauth2Credentials(JsonObject jsonObject) |
| Modifier and Type | Method and Description |
|---|---|
<V> void |
checkValid(V arg)
Implementors should override this method to perform validation.
|
String |
getCode() |
JsonObject |
getExtra() |
String |
getRedirectUri() |
Oauth2Credentials |
setCode(String code) |
Oauth2Credentials |
setExtra(JsonObject extra) |
Oauth2Credentials |
setRedirectUri(String redirectUri) |
JsonObject |
toJson()
Simple interop to downcast back to JSON for backwards compatibility.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyHttpChallenge, applyHttpChallenge, applyHttpChallenge, toHttpAuthorizationpublic Oauth2Credentials()
public Oauth2Credentials(JsonObject jsonObject)
public String getCode()
public Oauth2Credentials setCode(String code)
public String getRedirectUri()
public Oauth2Credentials setRedirectUri(String redirectUri)
public JsonObject getExtra()
public Oauth2Credentials setExtra(JsonObject extra)
public JsonObject toJson()
CredentialstoJson in interface Credentialspublic <V> void checkValid(V arg)
throws CredentialValidationException
CredentialscheckValid in interface CredentialsV - the generic type of the argumentarg - optional argument or null.CredentialValidationException - when the validation failsCopyright © 2021 Eclipse. All rights reserved.