public static class AuthenticationController.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
AuthenticationController |
build()
Create a new
AuthenticationController instance that will handle both Code Grant and Implicit Grant flows using either Code Exchange or Token Signature verification. |
AuthenticationController.Builder |
withAuthenticationMaxAge(java.lang.Integer maxAge)
Sets the allowable elapsed time in seconds since the last time user was authenticated.
|
AuthenticationController.Builder |
withClockSkew(java.lang.Integer clockSkew)
Sets the clock-skew or leeway value to use in the ID Token verification.
|
AuthenticationController.Builder |
withInvitation(java.lang.String invitation)
Sets the invitation query string parameter to join an organization.
|
AuthenticationController.Builder |
withJwkProvider(com.auth0.jwk.JwkProvider jwkProvider)
Sets the Jwk Provider that will return the Public Key required to verify the token in case of Implicit Grant flows.
|
AuthenticationController.Builder |
withLegacySameSiteCookie(boolean useLegacySameSiteCookie)
Sets whether fallback cookies will be set for clients that do not support SameSite=None cookie attribute.
|
AuthenticationController.Builder |
withOrganization(java.lang.String organization)
Sets the organization query string parameter value used to login to an organization.
|
AuthenticationController.Builder |
withResponseType(java.lang.String responseType)
Change the response type to request in the Authorization step.
|
public AuthenticationController.Builder withResponseType(java.lang.String responseType)
responseType - the response type to request. Any combination of 'code', 'token' and 'id_token' but 'token id_token' is allowed, using a space as separator.public AuthenticationController.Builder withJwkProvider(com.auth0.jwk.JwkProvider jwkProvider)
jwkProvider - a valid Jwk provider.public AuthenticationController.Builder withClockSkew(java.lang.Integer clockSkew)
clockSkew - the clock-skew to use for ID Token verification, in seconds.public AuthenticationController.Builder withAuthenticationMaxAge(java.lang.Integer maxAge)
maxAge - the max age of the authentication, in seconds.public AuthenticationController.Builder withLegacySameSiteCookie(boolean useLegacySameSiteCookie)
useLegacySameSiteCookie - whether fallback auth-based cookies should be set.public AuthenticationController.Builder withOrganization(java.lang.String organization)
organization - The ID of the organization to log the user in to.public AuthenticationController.Builder withInvitation(java.lang.String invitation)
invitation - The ID of the invitation to accept. This is available on the URL that is provided when accepting an invitation.public AuthenticationController build() throws java.lang.UnsupportedOperationException
AuthenticationController instance that will handle both Code Grant and Implicit Grant flows using either Code Exchange or Token Signature verification.AuthenticationController.java.lang.UnsupportedOperationException - if the Implicit Grant is chosen and the environment doesn't support UTF-8 encoding.