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 dataIOException
org.bouncycastle.tsp.TSPException
public byte[] sign(InputStream content) throws IOException
sign
in interface SignatureInterface
content
- is the content as a (Filter)InputStreamIOException
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.