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 buildOAuth2CodeGrantFlowpre-configured for usage with Google provider.- Since:
- 2.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOAuth2FlowGoogleBuilder.AccessTypeEnum that defines values for "access_type" parameter used in Google OAuth flow.static classOAuth2FlowGoogleBuilder.DisplayEnum that defines values for "display" parameter used in Google OAuth flow.static classOAuth2FlowGoogleBuilder.PromptEnum that defines values for "prompt" parameter used in Google OAuth flow.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLOGIN_HINTProperty 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 OAuth2FlowGoogleBuilderaccessType(OAuth2FlowGoogleBuilder.AccessType accessType)Setaccess typeparameter used in Authorization Request.OAuth2FlowGoogleBuilderdisplay(OAuth2FlowGoogleBuilder.Display display)Setdisplayparameter used in Authorization Request.OAuth2FlowGoogleBuilderloginHint(java.lang.String loginHint)Setlogin hintparameter used in Authorization Request.OAuth2FlowGoogleBuilderprompt(OAuth2FlowGoogleBuilder.Prompt prompt)Setpromptparameter 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 typeparameter used in Authorization Request.- Parameters:
accessType- access type value.- Returns:
- a google authorization flow builder.
-
prompt
public OAuth2FlowGoogleBuilder prompt(OAuth2FlowGoogleBuilder.Prompt prompt)
Setpromptparameter used in Authorization Request.- Parameters:
prompt- Prompt value.- Returns:
- a google authorization flow builder.
-
display
public OAuth2FlowGoogleBuilder display(OAuth2FlowGoogleBuilder.Display display)
Setdisplayparameter used in Authorization Request.- Parameters:
display- display value.- Returns:
- a google authorization flow builder.
-
loginHint
public OAuth2FlowGoogleBuilder loginHint(java.lang.String loginHint)
Setlogin hintparameter used in Authorization Request.- Parameters:
loginHint- login hint value.- Returns:
- a google authorization flow builder.
-
-