public class Oauth2Credentials extends Object implements Credentials
OAuth2Auth
providerConstructor 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, wait
applyHttpChallenge, applyHttpChallenge, applyHttpChallenge, toHttpAuthorization
public 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()
Credentials
toJson
in interface Credentials
public <V> void checkValid(V arg) throws CredentialValidationException
Credentials
checkValid
in interface Credentials
V
- the generic type of the argumentarg
- optional argument or null.CredentialValidationException
- when the validation failsCopyright © 2021 Eclipse. All rights reserved.