|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cryptware.jdigitsign.DigitalSignatureBase
public class DigitalSignatureBase
Base class for digital signature
Constructor Summary | |
---|---|
DigitalSignatureBase(iaik.pkcs.pkcs11.wrapper.PKCS11 pkcs11)
Initializes a new instance of the DigitalSignatureBase class |
Method Summary | |
---|---|
byte[] |
sign(byte[] data,
long slot,
long session,
long prikey,
long certificate,
boolean cades)
Signs the given data. |
byte[] |
sign(byte[] data,
long slot,
long session,
long prikey,
long certificate,
boolean cades,
TSAClient tsaClient)
Signs the given data and add a timestamp from the given TSA client |
boolean |
verify(byte[] cms)
Verifies the specified signature. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DigitalSignatureBase(iaik.pkcs.pkcs11.wrapper.PKCS11 pkcs11)
pkcs11
- the underlying PKCS11 implementationMethod Detail |
---|
public byte[] sign(byte[] data, long slot, long session, long prikey, long certificate, boolean cades) throws iaik.pkcs.pkcs11.wrapper.PKCS11Exception, java.io.IOException, TSPException
data
- data to signslot
- the PKCS11 slotsession
- the PKCS11 sessionprikey
- the privatecertificate
- the certificatecades
- specifies if CAdES signature is needed
iaik.pkcs.pkcs11.wrapper.PKCS11Exception
java.io.IOException
TSPException
public byte[] sign(byte[] data, long slot, long session, long prikey, long certificate, boolean cades, TSAClient tsaClient) throws iaik.pkcs.pkcs11.wrapper.PKCS11Exception, java.io.IOException, TSPException
data
- data to signslot
- the PKCS11 slotsession
- the PKCS11 sessionprikey
- the privatecertificate
- the certificatecades
- specifies if CAdES signature is neededtsaClient
- the TSA Client
iaik.pkcs.pkcs11.wrapper.PKCS11Exception
java.io.IOException
TSPException
public boolean verify(byte[] cms) throws CMSException
cms
- the data to verify
CMSException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |