public class PlaintextNoneAlgorithm extends AlgorithmInfo implements JsonWebSignatureAlgorithm
log| Constructor and Description |
|---|
PlaintextNoneAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAvailable() |
byte[] |
sign(Key key,
byte[] securedInputBytes) |
void |
validateSigningKey(Key key) |
void |
validateVerificationKey(Key key) |
boolean |
verifySignature(byte[] signatureBytes,
Key key,
byte[] securedInputBytes) |
getAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyType, setAlgorithmIdentifier, setJavaAlgorithm, setKeyPersuasion, setKeyTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithmIdentifier, getJavaAlgorithm, getKeyPersuasion, getKeyTypepublic boolean verifySignature(byte[] signatureBytes,
Key key,
byte[] securedInputBytes)
throws JoseException
verifySignature in interface JsonWebSignatureAlgorithmJoseExceptionpublic byte[] sign(Key key, byte[] securedInputBytes) throws JoseException
sign in interface JsonWebSignatureAlgorithmJoseExceptionpublic void validateSigningKey(Key key) throws InvalidKeyException
validateSigningKey in interface JsonWebSignatureAlgorithmInvalidKeyExceptionpublic void validateVerificationKey(Key key) throws InvalidKeyException
validateVerificationKey in interface JsonWebSignatureAlgorithmInvalidKeyExceptionpublic boolean isAvailable()
isAvailable in interface AlgorithmCopyright © 2015. All rights reserved.