public abstract class CreateSignatureBase extends Object implements SignatureInterface
| Constructor and Description |
|---|
CreateSignatureBase() |
| Modifier and Type | Method and Description |
|---|---|
TSAClient |
getTsaClient() |
void |
setCertificate(Certificate certificate) |
void |
setPrivateKey(PrivateKey privateKey) |
void |
setTsaClient(TSAClient tsaClient) |
byte[] |
sign(InputStream content)
SignatureInterface implementation.
|
protected org.bouncycastle.cms.CMSSignedData |
signTimeStamps(org.bouncycastle.cms.CMSSignedData signedData)
Does nothing.
|
public void setPrivateKey(PrivateKey privateKey)
public void setCertificate(Certificate certificate)
public void setTsaClient(TSAClient tsaClient)
public TSAClient getTsaClient()
protected org.bouncycastle.cms.CMSSignedData signTimeStamps(org.bouncycastle.cms.CMSSignedData signedData)
throws IOException,
org.bouncycastle.tsp.TSPException
signedData - Generated CMS signed dataIOExceptionorg.bouncycastle.tsp.TSPExceptionpublic byte[] sign(InputStream content) throws IOException
sign in interface SignatureInterfacecontent - is the content as a (Filter)InputStreamIOExceptionCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.