public class Oauth2Credentials extends Object implements Credentials
OAuth2Auth
providerConstructor and Description |
---|
Oauth2Credentials() |
Oauth2Credentials(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
Oauth2Credentials |
addScope(String scope) |
<V> void |
checkValid(V arg)
Implementors should override this method to perform validation.
|
String |
getAssertion() |
String |
getCode() |
String |
getCodeVerifier() |
JsonObject |
getJwt() |
String |
getPassword() |
String |
getRedirectUri() |
List<String> |
getScopes() |
String |
getUsername() |
Oauth2Credentials |
setAssertion(String assertion) |
Oauth2Credentials |
setCode(String code) |
Oauth2Credentials |
setCodeVerifier(String codeVerifier) |
Oauth2Credentials |
setJwt(JsonObject jwt) |
Oauth2Credentials |
setPassword(String password) |
Oauth2Credentials |
setRedirectUri(String redirectUri) |
Oauth2Credentials |
setScopes(List<String> scopes) |
Oauth2Credentials |
setUsername(String username) |
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 json)
public String getCode()
public Oauth2Credentials setCode(String code)
public String getRedirectUri()
public Oauth2Credentials setRedirectUri(String redirectUri)
public String getCodeVerifier()
public Oauth2Credentials setCodeVerifier(String codeVerifier)
public Oauth2Credentials addScope(String scope)
public Oauth2Credentials setScopes(List<String> scopes)
public JsonObject getJwt()
public Oauth2Credentials setJwt(JsonObject jwt)
public String getAssertion()
public Oauth2Credentials setAssertion(String assertion)
public String getPassword()
public Oauth2Credentials setPassword(String password)
public String getUsername()
public Oauth2Credentials setUsername(String username)
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 © 2022 Eclipse. All rights reserved.