Package org.xipki.security.jce
Class JceSigner
- java.lang.Object
-
- org.xipki.security.jce.JceSigner
-
- All Implemented Interfaces:
org.bouncycastle.operator.ContentSigner,XiContentSigner
public class JceSigner extends Object implements XiContentSigner
JCE signer- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description JceSigner(PrivateKey signKey, SignAlgo signAlgo, String providerName, Provider provider)
-
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
-
JceSigner
public JceSigner(PrivateKey signKey, SignAlgo signAlgo, String providerName, Provider provider) throws XiSecurityException
- Throws:
XiSecurityException
-
-
Method Detail
-
getEncodedAlgorithmIdentifier
public byte[] getEncodedAlgorithmIdentifier()
Description copied from interface:XiContentSignerreturns the encoded algorithm identifier.- Specified by:
getEncodedAlgorithmIdentifierin interfaceXiContentSigner- Returns:
- the encoded algorithm identifier.
-
getAlgorithmIdentifier
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
- Specified by:
getAlgorithmIdentifierin interfaceorg.bouncycastle.operator.ContentSigner
-
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStreamin interfaceorg.bouncycastle.operator.ContentSigner
-
getSignature
public byte[] getSignature()
- Specified by:
getSignaturein interfaceorg.bouncycastle.operator.ContentSigner
-
-