Package org.xipki.security
Class SignatureSigner
- java.lang.Object
-
- org.xipki.security.SignatureSigner
-
- All Implemented Interfaces:
org.bouncycastle.operator.ContentSigner,XiContentSigner
public class SignatureSigner extends Object implements XiContentSigner
XiContentSignerbased onSignature.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description SignatureSigner(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId, Signature signer, PrivateKey key)SignatureSigner(SignAlgo sigAlgo, Signature signer, PrivateKey key)
-
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
-
SignatureSigner
public SignatureSigner(SignAlgo sigAlgo, Signature signer, PrivateKey key) throws XiSecurityException
- Throws:
XiSecurityException
-
SignatureSigner
public SignatureSigner(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId, Signature signer, PrivateKey key) 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
-
-