Class DPoPProofReplayValidator.CacheValue

java.lang.Object
org.springframework.security.oauth2.jwt.DPoPProofReplayValidator.CacheValue
Enclosing class:
DPoPProofReplayValidator

public static final class DPoPProofReplayValidator.CacheValue extends Object
A representation of the value to which the Cache maps a (hashed) (jti) claim as the key.
Since:
6.5.12
  • Constructor Details

    • CacheValue

      public CacheValue(Instant issuedAt, Instant expiresAt, String jwkThumbprint)
      Constructs a CacheValue using the provided parameters.
      Parameters:
      issuedAt - the issued at claim which identifies the time at which the DPoP Proof Jwt was issued
      expiresAt - the expiration time when this CacheValue will be evicted from the cache
      jwkThumbprint - the SHA-256 thumbprint of the public key of the JSON Web Key (JWK) corresponding to the key used to digitally sign the DPoP Proof Jwt
  • Method Details

    • getIssuedAt

      public Instant getIssuedAt()
      Returns the issued at (iat) claim which identifies the time at which the DPoP Proof Jwt was issued.
      Returns:
      the issued at claim which identifies the time at which the DPoP Proof Jwt was issued
    • getExpiresAt

      public Instant getExpiresAt()
      Returns the expiration time when this CacheValue will be evicted from the cache.
      Returns:
      the expiration time when this CacheValue will be evicted from the cache
    • getJwkThumbprint

      public String getJwkThumbprint()
      Returns the SHA-256 thumbprint of the public key of the JSON Web Key (JWK) corresponding to the key used to digitally sign the DPoP Proof Jwt.
      Returns:
      the SHA-256 thumbprint of the public key of the JSON Web Key (JWK)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object