Class OAuth2FlowGoogleBuilder
java.lang.Object
org.glassfish.jersey.client.oauth2.AbstractAuthorizationCodeGrantBuilder<OAuth2FlowGoogleBuilder>
org.glassfish.jersey.client.oauth2.OAuth2FlowGoogleBuilder
- All Implemented Interfaces:
OAuth2CodeGrantFlow.Builder<OAuth2FlowGoogleBuilder>
public class OAuth2FlowGoogleBuilder
extends AbstractAuthorizationCodeGrantBuilder<OAuth2FlowGoogleBuilder>
Class that provides methods to build
OAuth2CodeGrantFlow pre-configured for usage
with Google provider.- Since:
- 2.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum that defines values for "access_type" parameter used in Google OAuth flow.static enumEnum that defines values for "display" parameter used in Google OAuth flow.static enumEnum that defines values for "prompt" parameter used in Google OAuth flow. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty key that defines values for "login_hint" parameter used in Google OAuth flow. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessType(OAuth2FlowGoogleBuilder.AccessType accessType) Setaccess typeparameter used in Authorization Request.display(OAuth2FlowGoogleBuilder.Display display) Setdisplayparameter used in Authorization Request.Setlogin hintparameter used in Authorization Request.prompt(OAuth2FlowGoogleBuilder.Prompt prompt) Setpromptparameter used in Authorization Request.Methods inherited from class AbstractAuthorizationCodeGrantBuilder
accessTokenUri, authorizationUri, build, client, clientIdentifier, property, redirectUri, refreshTokenUri, scope
-
Field Details
-
LOGIN_HINT
Property key that defines values for "login_hint" parameter used in Google OAuth flow.- See Also:
-
-
Constructor Details
-
OAuth2FlowGoogleBuilder
OAuth2FlowGoogleBuilder()Create a new google flow builder.
-
-
Method Details
-
accessType
Setaccess typeparameter used in Authorization Request.- Parameters:
accessType- access type value.- Returns:
- a google authorization flow builder.
-
prompt
Setpromptparameter used in Authorization Request.- Parameters:
prompt- Prompt value.- Returns:
- a google authorization flow builder.
-
display
Setdisplayparameter used in Authorization Request.- Parameters:
display- display value.- Returns:
- a google authorization flow builder.
-
loginHint
Setlogin hintparameter used in Authorization Request.- Parameters:
loginHint- login hint value.- Returns:
- a google authorization flow builder.
-