|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.gv.egiz.pdfas.api.sign.SignParameters
Parameter object that holds the sign parameters.
| Field Summary | |
protected DataSource |
document
The document to be signed. |
protected DataSink |
output
The output DataSink that will receive the signed document. |
protected String |
signatureDevice
The signature device to perform the actual signature. |
protected String |
signatureKeyIdentifier
The signature key identifier specifying which signature key should be used by the signature device to perform the signature. |
protected SignaturePositioning |
signaturePositioning
The signature position. |
protected String |
signatureProfileId
The signature profile identifier identifying the profile to be used in the config file. |
protected String |
signatureType
The type of the signature. |
protected TimeStamper |
timeStamperImpl
|
| Constructor Summary | |
SignParameters()
|
|
| Method Summary | |
DataSource |
getDocument()
|
DataSink |
getOutput()
|
String |
getSignatureDevice()
|
String |
getSignatureKeyIdentifier()
|
SignaturePositioning |
getSignaturePositioning()
|
String |
getSignatureProfileId()
|
String |
getSignatureType()
|
TimeStamper |
getTimeStamperImpl()
setTimeStamperImpl(TimeStamper) |
void |
setDocument(DataSource document)
|
void |
setOutput(DataSink output)
|
void |
setSignatureDevice(String signatureDevice)
|
void |
setSignatureKeyIdentifier(String signatureKeyIdentifier)
|
void |
setSignaturePositioning(SignaturePositioning signaturePositioning)
|
void |
setSignatureProfileId(String signatureProfileId)
|
void |
setSignatureType(String signatureType)
|
void |
setTimeStamperImpl(TimeStamper timeStamperImpl)
Set a TimeStamper to create a timestamp on the signature value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected DataSource document
The DataSource implementation encapsulates the actual representaion of the data. E.g. the DataSource may be File based or byte array based. See package at.gv.egiz.pdfas.framework.input and at.gv.pdfas.impl.input
protected String signatureType
May be Constants.SIGNATURE_TYPE_BINARY or
Constants.SIGNATURE_TYPE_TEXTUAL.
protected String signatureDevice
May be Constants.SIGNATURE_DEVICE_MOA or
Constants.SIGNATURE_DEVICE_BKU.
protected String signatureProfileId
Note: In near future it will be possible to provide a full specified profile here instead of the profile id.
protected String signatureKeyIdentifier
Providing a null value (default) means that no explicit signature key identifier is provided. The selected signature device will then use its default mechanism for retrieving this information (which is usually to read the key from the provided signature profile).
Note that not all signature devices may support this parameter. If a signature device doesn't support this parameter the value should be null.
This key is usually passed straight through to the signature device and thereby has to contain an appropriate value for the signature device chosen.
Currently, only the Constants.SIGNATURE_DEVICE_MOA signature device
evaluates this parameter and passes the provided String to MOA as the MOA
key group identifier. If null is provided, the MOA signature device will
determine the signature key identifier to be used from the provided profile
and, if not specified there either, from the MOA default configuration.
protected SignaturePositioning signaturePositioning
protected DataSink output
protected TimeStamper timeStamperImpl
| Constructor Detail |
public SignParameters()
| Method Detail |
public TimeStamper getTimeStamperImpl()
setTimeStamperImpl(TimeStamper)
public void setTimeStamperImpl(TimeStamper timeStamperImpl)
TimeStamper to create a timestamp on the signature value. Will be
called after sign. For binary signatures only. Timestamp will be embedded in egiz dict /TimeStamp.
timeStamperImpl - public DataSource getDocument()
public void setDocument(DataSource document)
document - the document to setpublic String getSignatureType()
public void setSignatureType(String signatureType)
signatureType - the signatureType to setpublic String getSignatureDevice()
public void setSignatureDevice(String signatureDevice)
signatureDevice - the signatureDevice to setpublic String getSignatureProfileId()
public void setSignatureProfileId(String signatureProfileId)
signatureProfileId - the signatureProfileId to setpublic SignaturePositioning getSignaturePositioning()
public void setSignaturePositioning(SignaturePositioning signaturePositioning)
signaturePositioning - the signaturePositioning to setpublic DataSink getOutput()
public void setOutput(DataSink output)
output - the output to setpublic String getSignatureKeyIdentifier()
public void setSignatureKeyIdentifier(String signatureKeyIdentifier)
signatureKeyIdentifier - the signatureKeyIdentifier to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||