Class Oauth2Credentials
java.lang.Object
io.vertx.ext.auth.oauth2.Oauth2Credentials
- All Implemented Interfaces:
Credentials
Credentials specific to the
OAuth2Auth provider- Author:
- Paulo Lopes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> voidcheckValid(V arg) Implementors should override this method to perform validation.getCode()getFlow()getJwt()setAssertion(String assertion) setCodeVerifier(String codeVerifier) setFlow(OAuth2FlowType flow) setJwt(JsonObject jwt) setPassword(String password) setRedirectUri(String redirectUri) setUsername(String username) toJson()Simple interop to downcast back to JSON for backwards compatibility.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Credentials
applyHttpChallenge, applyHttpChallenge, applyHttpChallenge, toHttpAuthorization
-
Constructor Details
-
Oauth2Credentials
public Oauth2Credentials() -
Oauth2Credentials
-
-
Method Details
-
getCode
-
setCode
-
getRedirectUri
-
setRedirectUri
-
getCodeVerifier
-
setCodeVerifier
-
getScopes
-
addScope
-
setScopes
-
getJwt
-
setJwt
-
getAssertion
-
setAssertion
-
getPassword
-
setPassword
-
getUsername
-
setUsername
-
getFlow
-
setFlow
-
toJson
Description copied from interface:CredentialsSimple interop to downcast back to JSON for backwards compatibility.- Specified by:
toJsonin interfaceCredentials- Returns:
- JSON representation of this credential.
-
checkValid
Description copied from interface:CredentialsImplementors should override this method to perform validation. An argument is allowed to allow custom validation, for example, when given a configuration property, a specific property may be allowed to be null.- Specified by:
checkValidin interfaceCredentials- Type Parameters:
V- the generic type of the argument- Parameters:
arg- optional argument or null.- Throws:
CredentialValidationException- when the validation fails
-
toString
-