Package org.xipki.security.pkcs12
Class HmacContentSigner
- java.lang.Object
-
- org.xipki.security.pkcs12.HmacContentSigner
-
- All Implemented Interfaces:
org.bouncycastle.operator.ContentSigner,XiContentSigner
public class HmacContentSigner extends Object implements XiContentSigner
HMAC signer.- Since:
- 2.2.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description HmacContentSigner(SignAlgo algorithm, SecretKey signingKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.x509.AlgorithmIdentifiergetAlgorithmIdentifier()byte[]getEncodedAlgorithmIdentifier()returns the encoded algorithm identifier.OutputStreamgetOutputStream()byte[]getSignature()
-
-
-
Constructor Detail
-
HmacContentSigner
public HmacContentSigner(SignAlgo algorithm, SecretKey signingKey) throws XiSecurityException
- Throws:
XiSecurityException
-
-
Method Detail
-
getAlgorithmIdentifier
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
- Specified by:
getAlgorithmIdentifierin interfaceorg.bouncycastle.operator.ContentSigner
-
getEncodedAlgorithmIdentifier
public byte[] getEncodedAlgorithmIdentifier()
Description copied from interface:XiContentSignerreturns the encoded algorithm identifier.- Specified by:
getEncodedAlgorithmIdentifierin interfaceXiContentSigner- Returns:
- the encoded algorithm identifier.
-
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStreamin interfaceorg.bouncycastle.operator.ContentSigner
-
getSignature
public byte[] getSignature()
- Specified by:
getSignaturein interfaceorg.bouncycastle.operator.ContentSigner
-
-