Package org.xipki.security
Class XiWrappedContentSigner
- java.lang.Object
-
- org.xipki.security.XiWrappedContentSigner
-
- All Implemented Interfaces:
org.bouncycastle.operator.ContentSigner,XiContentSigner
public class XiWrappedContentSigner extends Object implements XiContentSigner
An implementation ofXiContentSigner.- Since:
- 2.2.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description XiWrappedContentSigner(org.bouncycastle.operator.ContentSigner signer, boolean fixedAlgorithmIdentifier)
-
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
-
XiWrappedContentSigner
public XiWrappedContentSigner(org.bouncycastle.operator.ContentSigner signer, boolean fixedAlgorithmIdentifier) 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
-
-