Class OAuth2AuthorizationURL
java.lang.Object
io.vertx.ext.auth.oauth2.OAuth2AuthorizationURL
TypeSafe DataObject for passing needed parameters for
OAuth2Auth.authorizeURL(OAuth2AuthorizationURL)- Author:
- Lazar Bulic
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorConstructor to create an options from JSONConstructor to create an options from an existing options -
Method Summary
Modifier and TypeMethodDescriptionAdd a scopeGet the additional parametersPKCE code challengePKCE code challenge methodHint on login name for IdP UIHint on kind of IdP promptGet the redirect URIGet the scopesgetState()Get the stateputAdditionalParameter(String key, String value) Add an additional parametersetAdditionalParameters(Map<String, String> additionalParameters) Set the additional parameterssetCodeChallenge(String codeChallenge) PKCE code challengesetCodeChallengeMethod(String codeChallengeMethod) PKCE code challenge methodsetLoginHint(String loginHint) Hint on login name for IdP UIHint on kind of IdP promptsetRedirectUri(String redirectUri) Set the redirect URISet the scopesSet the statetoJson()toString()
-
Constructor Details
-
OAuth2AuthorizationURL
public OAuth2AuthorizationURL()Default constructor -
OAuth2AuthorizationURL
Constructor to create an options from JSON- Parameters:
json- the JSON
-
OAuth2AuthorizationURL
Constructor to create an options from an existing options- Parameters:
other- the existing one to clone
-
-
Method Details
-
getRedirectUri
-
setRedirectUri
Set the redirect URI- Parameters:
redirectUri- the redirectUri to set- Returns:
- self
-
getScopes
-
setScopes
Set the scopes- Parameters:
scopes- the scopes to set- Returns:
- self
-
addScope
Add a scope- Parameters:
scope- the scope to add- Returns:
- self
-
getState
-
setState
Set the state- Parameters:
state- the state to set- Returns:
- self
-
getCodeChallenge
PKCE code challenge -
setCodeChallenge
PKCE code challenge -
getCodeChallengeMethod
PKCE code challenge method -
setCodeChallengeMethod
PKCE code challenge method -
getPrompt
Hint on kind of IdP prompt -
setPrompt
Hint on kind of IdP prompt -
getLoginHint
Hint on login name for IdP UI -
setLoginHint
Hint on login name for IdP UI -
getAdditionalParameters
-
setAdditionalParameters
Set the additional parameters- Parameters:
additionalParameters- the additionalParameters to set. Both key and value should be in final format that is expected by the provider. Example: "ui_locales" -> "fr-CA fr en"- Returns:
- self
-
putAdditionalParameter
Add an additional parameter- Parameters:
key- the key of the parameter. Should be in final format that is expected by the provider. Example: "ui_locales"value- the value of the parameter. Should be in final format that is expected by the provider. Example: "fr-CA fr en"- Returns:
- self
-
toJson
-
toString
-