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 buildOAuth2CodeGrantFlow
pre-configured for usage with Google provider.- Since:
- 2.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OAuth2FlowGoogleBuilder.AccessType
Enum that defines values for "access_type" parameter used in Google OAuth flow.static class
OAuth2FlowGoogleBuilder.Display
Enum that defines values for "display" parameter used in Google OAuth flow.static class
OAuth2FlowGoogleBuilder.Prompt
Enum that defines values for "prompt" parameter used in Google OAuth flow.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOGIN_HINT
Property key that defines values for "login_hint" parameter used in Google OAuth flow.
-
Constructor Summary
Constructors Constructor Description OAuth2FlowGoogleBuilder()
Create a new google flow builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2FlowGoogleBuilder
accessType(OAuth2FlowGoogleBuilder.AccessType accessType)
Setaccess type
parameter used in Authorization Request.OAuth2FlowGoogleBuilder
display(OAuth2FlowGoogleBuilder.Display display)
Setdisplay
parameter used in Authorization Request.OAuth2FlowGoogleBuilder
loginHint(java.lang.String loginHint)
Setlogin hint
parameter used in Authorization Request.OAuth2FlowGoogleBuilder
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 Detail
-
LOGIN_HINT
public static final java.lang.String LOGIN_HINT
Property key that defines values for "login_hint" parameter used in Google OAuth flow.- See Also:
- Constant Field Values
-
-
Method Detail
-
accessType
public OAuth2FlowGoogleBuilder accessType(OAuth2FlowGoogleBuilder.AccessType accessType)
Setaccess type
parameter used in Authorization Request.- Parameters:
accessType
- access type value.- Returns:
- a google authorization flow builder.
-
prompt
public OAuth2FlowGoogleBuilder prompt(OAuth2FlowGoogleBuilder.Prompt prompt)
Setprompt
parameter used in Authorization Request.- Parameters:
prompt
- Prompt value.- Returns:
- a google authorization flow builder.
-
display
public OAuth2FlowGoogleBuilder display(OAuth2FlowGoogleBuilder.Display display)
Setdisplay
parameter used in Authorization Request.- Parameters:
display
- display value.- Returns:
- a google authorization flow builder.
-
loginHint
public OAuth2FlowGoogleBuilder loginHint(java.lang.String loginHint)
Setlogin hint
parameter used in Authorization Request.- Parameters:
loginHint
- login hint value.- Returns:
- a google authorization flow builder.
-
-