S
- the type of Key
used to create digital signatures or message authentication codesV
- the type of Key
used to verify digital signatures or message authentication codespublic interface SecureDigestAlgorithm<S extends Key,V extends Key> extends DigestAlgorithm<SecureRequest<InputStream,S>,VerifySecureDigestRequest<V>>
DigestAlgorithm
that requires a Key
to compute and verify the authenticity of digests using either
digital signature or
message
authentication code algorithms.
Standard Identifier
SecureDigestAlgorithm
extends Identifiable
: when a SecureDigestAlgorithm
is used to
compute the digital signature or MAC of a JWS, the value returned from
secureDigestAlgorithm.getId()
will be set as the JWS
"alg"
protected header value.
Standard Implementations
Constant definitions and utility methods for all JWA (RFC 7518) standard
Cryptographic Algorithms for Digital Signatures and
MACs are available via Jwts.SIG
.
"alg" identifier
SecureDigestAlgorithm
extends Identifiable
: the value returned from
getId()
will be used as the JWS "alg" protected header value.
MacAlgorithm
,
SignatureAlgorithm
digest, verify
getId
Copyright © 2014–2023 jsonwebtoken.io. All rights reserved.