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,
ProviderContext providerContext) |
void |
validateSigningKey(Key key) |
void |
validateVerificationKey(Key key) |
boolean |
verifySignature(byte[] signatureBytes,
Key key,
byte[] securedInputBytes,
ProviderContext providerContext) |
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,
ProviderContext providerContext)
throws JoseException
verifySignature in interface JsonWebSignatureAlgorithmJoseExceptionpublic byte[] sign(Key key, byte[] securedInputBytes, ProviderContext providerContext) 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 © 2019. All rights reserved.