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 enum
Enum that defines values for "access_type" parameter used in Google OAuth flow.static enum
Enum that defines values for "display" parameter used in Google OAuth flow.static enum
Enum that defines values for "prompt" parameter used in Google OAuth flow. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Property 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 type
parameter used in Authorization Request.display
(OAuth2FlowGoogleBuilder.Display display) Setdisplay
parameter used in Authorization Request.Setlogin hint
parameter used in Authorization Request.prompt
(OAuth2FlowGoogleBuilder.Prompt prompt) Setprompt
parameter used in Authorization Request.Methods inherited from class org.glassfish.jersey.client.oauth2.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 type
parameter used in Authorization Request.- Parameters:
accessType
- access type value.- Returns:
- a google authorization flow builder.
-
prompt
Setprompt
parameter used in Authorization Request.- Parameters:
prompt
- Prompt value.- Returns:
- a google authorization flow builder.
-
display
Setdisplay
parameter used in Authorization Request.- Parameters:
display
- display value.- Returns:
- a google authorization flow builder.
-
loginHint
Setlogin hint
parameter used in Authorization Request.- Parameters:
loginHint
- login hint value.- Returns:
- a google authorization flow builder.
-