Class UserDetailsAuthenticationTokenService
java.lang.Object
net.solarnetwork.central.security.web.support.UserDetailsAuthenticationTokenService
- All Implemented Interfaces:
AuthenticationTokenService
public class UserDetailsAuthenticationTokenService
extends Object
implements AuthenticationTokenService
Implementation of
AuthenticationTokenService that uses a
UserDetailsService to access token data.- Since:
- 1.10
-
Field Summary
Fields inherited from interface net.solarnetwork.central.security.web.AuthenticationTokenService
SIGN_DATE_PROP -
Constructor Summary
ConstructorsConstructorDescriptionUserDetailsAuthenticationTokenService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]computeAuthenticationTokenSigningKey(net.solarnetwork.web.jakarta.security.AuthenticationScheme scheme, SecurityToken token, Map<String, ?> properties) Compute a token signing key from a token and properties.
-
Constructor Details
-
UserDetailsAuthenticationTokenService
public UserDetailsAuthenticationTokenService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
-
-
Method Details
-
computeAuthenticationTokenSigningKey
public byte[] computeAuthenticationTokenSigningKey(net.solarnetwork.web.jakarta.security.AuthenticationScheme scheme, SecurityToken token, Map<String, ?> properties) Description copied from interface:AuthenticationTokenServiceCompute a token signing key from a token and properties.The following properties are used:
AuthenticationTokenService.SIGN_DATE_PROP- For the V2 scheme, the signing date to use. Must be a
Instantobject.
- Specified by:
computeAuthenticationTokenSigningKeyin interfaceAuthenticationTokenService- Parameters:
scheme- the token scheme to usetoken- the tokenproperties- the signing properties- Returns:
- the new signing key to use
-