public abstract class IntegrityHmac extends SignatureAlgorithmSpi
Modifier and Type | Class and Description |
---|---|
static class |
IntegrityHmac.IntegrityHmacMD5
Class IntegrityHmacMD5
|
static class |
IntegrityHmac.IntegrityHmacRIPEMD160
Class IntegrityHmacRIPEMD160
|
static class |
IntegrityHmac.IntegrityHmacSHA1
Class IntegrityHmacSHA1
|
static class |
IntegrityHmac.IntegrityHmacSHA224
Class IntegrityHmacSHA224
|
static class |
IntegrityHmac.IntegrityHmacSHA256
Class IntegrityHmacSHA256
|
static class |
IntegrityHmac.IntegrityHmacSHA384
Class IntegrityHmacSHA384
|
static class |
IntegrityHmac.IntegrityHmacSHA512
Class IntegrityHmacSHA512
|
Constructor and Description |
---|
IntegrityHmac()
Method IntegrityHmac
|
IntegrityHmac(Provider provider) |
Modifier and Type | Method and Description |
---|---|
protected void |
engineAddContextToElement(Element element)
Method engineAddContextToElement
|
protected void |
engineGetContextFromElement(Element element)
Method engineGetContextFromElement
|
protected String |
engineGetJCEAlgorithmString()
Method engineGetJCEAlgorithmString
Proxy method for
Signature.getAlgorithm()
which is executed on the internal Signature object. |
protected String |
engineGetJCEProviderName()
Method engineGetJCEAlgorithmString
Method engineGetJCEProviderName
|
protected void |
engineInitSign(Key secretKey)
Method engineInitSign
|
protected void |
engineInitSign(Key secretKey,
AlgorithmParameterSpec algorithmParameterSpec)
Method engineInitSign
|
protected void |
engineInitSign(Key secretKey,
SecureRandom secureRandom)
Method engineInitSign
|
protected void |
engineInitVerify(Key secretKey)
Proxy method for
Signature.initVerify(java.security.PublicKey)
which is executed on the internal Signature object. |
protected void |
engineSetHMACOutputLength(int length)
Method engineSetHMACOutputLength
|
protected void |
engineSetParameter(AlgorithmParameterSpec params)
Proxy method for
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature object. |
protected byte[] |
engineSign()
Proxy method for
Signature.sign()
which is executed on the internal Signature object. |
protected void |
engineUpdate(byte input)
Proxy method for
Signature.update(byte)
which is executed on the internal Signature object. |
protected void |
engineUpdate(byte[] input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected void |
engineUpdate(byte[] buf,
int offset,
int len)
Proxy method for
Signature.update(byte[], int, int)
which is executed on the internal Signature object. |
protected boolean |
engineVerify(byte[] signature)
Proxy method for
Signature.verify(byte[])
which is executed on the internal Signature object. |
engineGetURI, engineInitSign, engineInitVerify
public IntegrityHmac() throws XMLSignatureException
XMLSignatureException
public IntegrityHmac(Provider provider) throws XMLSignatureException
XMLSignatureException
protected void engineSetParameter(AlgorithmParameterSpec params) throws XMLSignatureException
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature
object.engineSetParameter
in class SignatureAlgorithmSpi
params
- XMLSignatureException
protected boolean engineVerify(byte[] signature) throws XMLSignatureException
Signature.verify(byte[])
which is executed on the internal Signature
object.engineVerify
in class SignatureAlgorithmSpi
signature
- XMLSignatureException
protected void engineInitVerify(Key secretKey) throws XMLSignatureException
Signature.initVerify(java.security.PublicKey)
which is executed on the internal Signature
object.engineInitVerify
in class SignatureAlgorithmSpi
secretKey
- XMLSignatureException
protected byte[] engineSign() throws XMLSignatureException
Signature.sign()
which is executed on the internal Signature
object.engineSign
in class SignatureAlgorithmSpi
Signature.sign()
methodXMLSignatureException
protected void engineInitSign(Key secretKey) throws XMLSignatureException
engineInitSign
in class SignatureAlgorithmSpi
secretKey
- XMLSignatureException
protected void engineInitSign(Key secretKey, AlgorithmParameterSpec algorithmParameterSpec) throws XMLSignatureException
engineInitSign
in class SignatureAlgorithmSpi
secretKey
- algorithmParameterSpec
- XMLSignatureException
protected void engineInitSign(Key secretKey, SecureRandom secureRandom) throws XMLSignatureException
engineInitSign
in class SignatureAlgorithmSpi
secretKey
- secureRandom
- XMLSignatureException
protected void engineUpdate(byte[] input) throws XMLSignatureException
Signature.update(byte[])
which is executed on the internal Signature
object.engineUpdate
in class SignatureAlgorithmSpi
input
- XMLSignatureException
protected void engineUpdate(byte input) throws XMLSignatureException
Signature.update(byte)
which is executed on the internal Signature
object.engineUpdate
in class SignatureAlgorithmSpi
input
- XMLSignatureException
protected void engineUpdate(byte[] buf, int offset, int len) throws XMLSignatureException
Signature.update(byte[], int, int)
which is executed on the internal Signature
object.engineUpdate
in class SignatureAlgorithmSpi
buf
- offset
- len
- XMLSignatureException
protected String engineGetJCEAlgorithmString()
Signature.getAlgorithm()
which is executed on the internal Signature
object.engineGetJCEAlgorithmString
in class SignatureAlgorithmSpi
Signature.getAlgorithm()
methodprotected String engineGetJCEProviderName()
engineGetJCEProviderName
in class SignatureAlgorithmSpi
protected void engineSetHMACOutputLength(int length) throws XMLSignatureException
engineSetHMACOutputLength
in class SignatureAlgorithmSpi
length
- XMLSignatureException
protected void engineGetContextFromElement(Element element) throws XMLSignatureException
engineGetContextFromElement
in class SignatureAlgorithmSpi
element
- XMLSignatureException
protected void engineAddContextToElement(Element element) throws XMLSignatureException
engineAddContextToElement
in class SignatureAlgorithmSpi
element
- XMLSignatureException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.