Package org.jose4j.jws
Interface JsonWebSignatureAlgorithm
- All Superinterfaces:
Algorithm
- All Known Implementing Classes:
BaseSignatureAlgorithm,EcdsaUsingShaAlgorithm,EcdsaUsingShaAlgorithm.EcdsaP256UsingSha256,EcdsaUsingShaAlgorithm.EcdsaP384UsingSha384,EcdsaUsingShaAlgorithm.EcdsaP521UsingSha512,EcdsaUsingShaAlgorithm.EcdsaSECP256K1UsingSha256,EdDsaAlgorithm,HmacUsingShaAlgorithm,HmacUsingShaAlgorithm.HmacSha256,HmacUsingShaAlgorithm.HmacSha384,HmacUsingShaAlgorithm.HmacSha512,RsaUsingShaAlgorithm,RsaUsingShaAlgorithm.RsaPssSha256,RsaUsingShaAlgorithm.RsaPssSha384,RsaUsingShaAlgorithm.RsaPssSha512,RsaUsingShaAlgorithm.RsaSha256,RsaUsingShaAlgorithm.RsaSha384,RsaUsingShaAlgorithm.RsaSha512,UnsecuredNoneAlgorithm
-
Method Summary
Modifier and TypeMethodDescriptionprepareForSign(Key key, ProviderContext providerContext) byte[]sign(CryptoPrimitive cryptoPrimitive, byte[] securedInputBytes) voidvalidateSigningKey(Key key) voidbooleanverifySignature(byte[] signatureBytes, Key key, byte[] securedInputBytes, ProviderContext providerContext) Methods inherited from interface org.jose4j.jwa.Algorithm
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType, isAvailable
-
Method Details
-
verifySignature
boolean verifySignature(byte[] signatureBytes, Key key, byte[] securedInputBytes, ProviderContext providerContext) throws JoseException - Throws:
JoseException
-
prepareForSign
- Throws:
JoseException
-
sign
- Throws:
JoseException
-
validateSigningKey
- Throws:
InvalidKeyException
-
validateVerificationKey
- Throws:
InvalidKeyException
-