public class HmacUsingShaAlgorithm extends AlgorithmInfo implements JsonWebSignatureAlgorithm
| Modifier and Type | Class and Description |
|---|---|
static class |
HmacUsingShaAlgorithm.HmacSha256 |
static class |
HmacUsingShaAlgorithm.HmacSha384 |
static class |
HmacUsingShaAlgorithm.HmacSha512 |
log| Constructor and Description |
|---|
HmacUsingShaAlgorithm(String id,
String javaAlgo,
int minimumKeyLength) |
| 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 InvalidKeyException
verifySignature in interface JsonWebSignatureAlgorithmInvalidKeyExceptionpublic byte[] sign(Key key, byte[] securedInputBytes) throws InvalidKeyException
sign in interface JsonWebSignatureAlgorithmInvalidKeyExceptionpublic 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.