Class DPoPProofReplayValidator.CacheValue
java.lang.Object
org.springframework.security.oauth2.jwt.DPoPProofReplayValidator.CacheValue
- Enclosing class:
- DPoPProofReplayValidator
A representation of the value to which the
Cache maps a (hashed)
(jti) claim as the key.-
Constructor Summary
ConstructorsConstructorDescriptionCacheValue(Instant issuedAt, Instant expiresAt, String jwkThumbprint) Constructs aCacheValueusing the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the expiration time when thisCacheValuewill be evicted from the cache.Returns the issued at(iat)claim which identifies the time at which the DPoP ProofJwtwas issued.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 ProofJwt.inthashCode()
-
Constructor Details
-
CacheValue
Constructs aCacheValueusing the provided parameters.- Parameters:
issuedAt- the issued at claim which identifies the time at which the DPoP ProofJwtwas issuedexpiresAt- the expiration time when thisCacheValuewill be evicted from the cachejwkThumbprint- the SHA-256 thumbprint of the public key of the JSON Web Key (JWK) corresponding to the key used to digitally sign the DPoP ProofJwt
-
-
Method Details
-
getIssuedAt
Returns the issued at(iat)claim which identifies the time at which the DPoP ProofJwtwas issued.- Returns:
- the issued at claim which identifies the time at which the DPoP Proof
Jwtwas issued
-
getExpiresAt
Returns the expiration time when thisCacheValuewill be evicted from the cache.- Returns:
- the expiration time when this
CacheValuewill be evicted from the cache
-
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 ProofJwt.- Returns:
- the SHA-256 thumbprint of the public key of the JSON Web Key (JWK)
-
equals
-
hashCode
public int hashCode()
-