Module one.jpro.platform.auth.core
Class OAuth2Credentials
java.lang.Object
one.jpro.platform.auth.core.oauth2.OAuth2Credentials
- All Implemented Interfaces:
Credentials
Credentials specific to the
OAuth2AuthenticationProvider.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()getFlow()org.json.JSONObjectgetJwt()getNonce()Returns the normalized version of the redirect uri.getState()setAssertion(String assertion) setCodeVerifier(String codeVerifier) setFlow(OAuth2Flow flow) setJwt(org.json.JSONObject jwt) setPassword(String password) setRedirectUri(String redirectUri) setUsername(String username) org.json.JSONObjecttoJSON()Convert the credential information to JSON format.toString()<V> voidvalidate(V arg) Implementors should override this method to perform validation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface one.jpro.platform.auth.core.authentication.Credentials
toHttpAuthorization
-
Constructor Details
-
OAuth2Credentials
public OAuth2Credentials()Default constructor.
-
-
Method Details
-
getCode
-
setCode
-
getCodeVerifier
-
setCodeVerifier
-
getRedirectUri
-
setRedirectUri
-
getJwt
public org.json.JSONObject getJwt() -
setJwt
-
getAssertion
-
setAssertion
-
getPassword
-
setPassword
-
getUsername
-
setUsername
-
getScopes
-
setScopes
-
getFlow
-
setFlow
-
getNonce
-
setNonce
-
getState
-
setState
-
getNormalizedRedirectUri
Returns the normalized version of the redirect uri.- Returns:
- the normalized redirected uri
-
validate
Description copied from interface:CredentialsImplementors should override this method to perform validation. An argument is allowed to allow custom validation.- Specified by:
validatein interfaceCredentials- Type Parameters:
V- the generic type of the argument- Parameters:
arg- optional argument or null.- Throws:
CredentialValidationException- when the validation fails
-
toJSON
public org.json.JSONObject toJSON()Description copied from interface:CredentialsConvert the credential information to JSON format.- Specified by:
toJSONin interfaceCredentials- Returns:
- a JSON object.
-
toString
-