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 |
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 |
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 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.