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