|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.knowcenter.wag.egov.egiz.pdf.BinarySignatureHolder
public class BinarySignatureHolder
Data structure that holds the information of one binary signature block, which is the signed/signable pdf and the corresponding SignatureObject.
The actual signed text is computed by Base64 encoding the binary data when first requested.
The corresponding getters can be used to retrieve the signed document (e.g. for displaying a preview).
Constructor Summary | |
---|---|
BinarySignatureHolder(byte[] pdf,
int length,
SignatureObject so)
Constructor that takes the pdf and the SignatureObject as parameters. |
Method Summary | |
---|---|
protected void |
computeSignedText()
Computes or recomputes the signed text from the underlying binary data. |
SignatureObject |
getSignatureObject()
|
byte[] |
getSignedPdf()
Returns the signed_pdf. |
int |
getSignedPdfLength()
Returns the signed_pdf_length. |
String |
getSignedText()
Returns the signed text (verification) or the to-be-signed signable text (signation). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinarySignatureHolder(byte[] pdf, int length, SignatureObject so)
pdf
- The pdf data.length
- The length (number of bytes) of the pdf data to be used for being
converted into "signed text".so
- The signed signature object.Method Detail |
---|
public String getSignedText()
SignatureHolder
Note that this text must be the one that was actually signed. This text is directly passed to the connector for signation/verification. No normalization or modification will be / must be done to this text between reading out from the signature holder and passing the text to the connector.
getSignedText
in interface SignatureHolder
SignatureHolder.getSignedText()
public SignatureObject getSignatureObject()
getSignatureObject
in interface SignatureHolder
SignatureHolder.getSignatureObject()
protected void computeSignedText()
This usually encodes the binary data of given length in Base64.
This is usually called automatically when the signed text is first requested.
public byte[] getSignedPdf()
public int getSignedPdfLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |