public class HMACSignatureAlgorithm extends Object implements SignatureAlgorithm
Constructor and Description |
---|
HMACSignatureAlgorithm(String jceName,
String jceProvider) |
Modifier and Type | Method and Description |
---|---|
void |
engineInitSign(Key signingKey) |
void |
engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec) |
void |
engineInitSign(Key signingKey,
SecureRandom secureRandom) |
void |
engineInitVerify(Key verificationKey) |
void |
engineSetParameter(AlgorithmParameterSpec params) |
byte[] |
engineSign() |
void |
engineUpdate(byte input) |
void |
engineUpdate(byte[] input) |
void |
engineUpdate(byte[] buf,
int offset,
int len) |
boolean |
engineVerify(byte[] signature) |
public HMACSignatureAlgorithm(String jceName, String jceProvider) throws NoSuchProviderException, NoSuchAlgorithmException
public void engineUpdate(byte[] input) throws XMLSecurityException
engineUpdate
in interface SignatureAlgorithm
XMLSecurityException
public void engineUpdate(byte input) throws XMLSecurityException
engineUpdate
in interface SignatureAlgorithm
XMLSecurityException
public void engineUpdate(byte[] buf, int offset, int len) throws XMLSecurityException
engineUpdate
in interface SignatureAlgorithm
XMLSecurityException
public void engineInitSign(Key signingKey) throws XMLSecurityException
engineInitSign
in interface SignatureAlgorithm
XMLSecurityException
public void engineInitSign(Key signingKey, SecureRandom secureRandom) throws XMLSecurityException
engineInitSign
in interface SignatureAlgorithm
XMLSecurityException
public void engineInitSign(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec) throws XMLSecurityException
engineInitSign
in interface SignatureAlgorithm
XMLSecurityException
public byte[] engineSign() throws XMLSecurityException
engineSign
in interface SignatureAlgorithm
XMLSecurityException
public void engineInitVerify(Key verificationKey) throws XMLSecurityException
engineInitVerify
in interface SignatureAlgorithm
XMLSecurityException
public boolean engineVerify(byte[] signature) throws XMLSecurityException
engineVerify
in interface SignatureAlgorithm
XMLSecurityException
public void engineSetParameter(AlgorithmParameterSpec params) throws XMLSecurityException
engineSetParameter
in interface SignatureAlgorithm
XMLSecurityException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.