Package io.jmix.securityoauth2.impl
Class UniqueAuthenticationKeyGenerator
java.lang.Object
io.jmix.securityoauth2.impl.UniqueAuthenticationKeyGenerator
- All Implemented Interfaces:
org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator
public class UniqueAuthenticationKeyGenerator
extends Object
implements org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator
Key generator that uses random UUID for authentication keys. This makes token endpoint return unique access token on
each token request.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextractKey
(org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
-
Constructor Details
-
UniqueAuthenticationKeyGenerator
public UniqueAuthenticationKeyGenerator()
-
-
Method Details
-
extractKey
public String extractKey(org.springframework.security.oauth2.provider.OAuth2Authentication authentication) - Specified by:
extractKey
in interfaceorg.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator
-