Class HmacTrustedDeviceTokenSigner

java.lang.Object
com.irurueta.authserver.authorization.infrastructure.keys.HmacTrustedDeviceTokenSigner
All Implemented Interfaces:
TrustedDeviceTokenSigner

@Component public class HmacTrustedDeviceTokenSigner extends Object implements TrustedDeviceTokenSigner
TrustedDeviceTokenSigner that signs the trusted-device cookie with HMAC-SHA256, under a key derived from the key-encryption secret for this purpose only (PurposeKeyDerivation). The value is token.signature, the signature Base64url encoded without padding; it is compared in constant time.
  • Field Details

  • Constructor Details

    • HmacTrustedDeviceTokenSigner

      public HmacTrustedDeviceTokenSigner(PurposeKeyDerivation derivation)
      Derives the signing key.
      Parameters:
      derivation - derives the key of a purpose from the key-encryption secret.
  • Method Details