public interface JsonWebSignatureAlgorithm extends Algorithm
| Modifier and Type | Method and Description |
|---|---|
CryptoPrimitive |
prepareForSign(Key key,
ProviderContext providerContext) |
byte[] |
sign(CryptoPrimitive cryptoPrimitive,
byte[] securedInputBytes) |
void |
validateSigningKey(Key key) |
void |
validateVerificationKey(Key key) |
boolean |
verifySignature(byte[] signatureBytes,
Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType, isAvailableboolean verifySignature(byte[] signatureBytes,
Key key,
byte[] securedInputBytes,
ProviderContext providerContext)
throws JoseException
JoseExceptionCryptoPrimitive prepareForSign(Key key, ProviderContext providerContext) throws JoseException
JoseExceptionbyte[] sign(CryptoPrimitive cryptoPrimitive, byte[] securedInputBytes) throws JoseException
JoseExceptionvoid validateSigningKey(Key key) throws InvalidKeyException
InvalidKeyExceptionvoid validateVerificationKey(Key key) throws InvalidKeyException
InvalidKeyExceptionCopyright © 2021. All rights reserved.