Interface AuthenticationTokenService

All Known Implementing Classes:
UserDetailsAuthenticationTokenService

public interface AuthenticationTokenService
API for a service that performs functions on authentication data tokens.
Since:
1.10
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    An Instant property to be used as the signing date.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    computeAuthenticationTokenSigningKey(net.solarnetwork.web.jakarta.security.AuthenticationScheme scheme, SecurityToken token, Map<String,?> properties)
    Compute a token signing key from a token and properties.
  • Field Details

  • Method Details

    • computeAuthenticationTokenSigningKey

      byte[] computeAuthenticationTokenSigningKey(net.solarnetwork.web.jakarta.security.AuthenticationScheme scheme, SecurityToken token, Map<String,?> properties)
      Compute a token signing key from a token and properties.

      The following properties are used:

      SIGN_DATE_PROP
      For the V2 scheme, the signing date to use. Must be a Instant object.
      Parameters:
      scheme - the token scheme to use
      token - the token
      properties - the signing properties
      Returns:
      the new signing key to use