Class OpaqueTokenAuthenticationProvider
java.lang.Object
com.codename1.backend.security.oauth2.server.resource.OpaqueTokenAuthenticationProvider
- All Implemented Interfaces:
AuthenticationProvider
public final class OpaqueTokenAuthenticationProvider
extends Object
implements AuthenticationProvider
Authenticates a bearer token by introspecting it. Each scope the token
was granted becomes a
SCOPE_ authority, as it does for a JWT.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(Authentication authentication) The accepted authentication, or null when this provider cannot decide and the next one should be asked.booleanWhether this provider checks tokens of this class.
-
Constructor Details
-
OpaqueTokenAuthenticationProvider
-
-
Method Details
-
authenticate
Description copied from interface:AuthenticationProviderThe accepted authentication, or null when this provider cannot decide and the next one should be asked.
Throws
AuthenticationException: when the token is refused
- Specified by:
authenticatein interfaceAuthenticationProvider
-
supports
Description copied from interface:AuthenticationProviderWhether this provider checks tokens of this class.- Specified by:
supportsin interfaceAuthenticationProvider
-