public interface JsonWebSignatureAlgorithm extends Algorithm
| Modifier and Type | Method and Description |
|---|---|
byte[] |
sign(Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
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
JoseExceptionbyte[] sign(Key key, byte[] securedInputBytes, ProviderContext providerContext) throws JoseException
JoseExceptionvoid validateSigningKey(Key key) throws InvalidKeyException
InvalidKeyExceptionvoid validateVerificationKey(Key key) throws InvalidKeyException
InvalidKeyExceptionCopyright © 2018. All rights reserved.