|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.qoppa.pdf.SigningInformation
Object that holds information necessary to digitally sign a PDF file. This object is normally used by the host application to set the information that the library needs to sign a PDF file.
| Constructor Summary | |
SigningInformation(KeyStore ks,
String entryAlias,
String aliasPWD)
Constructs a SigningInformation object and gets the digital ID from a Java KeyStore object. |
|
SigningInformation(String pkcs12File,
String ksPWD,
String entryAlias,
String aliasPWD)
Constructs a SigningInformation object and gets the digital ID from a named PKCS#12 file. |
|
| Method Summary | |
Certificate[] |
getCertificateChain()
Returns the certificate chain for the issuers of the certificate in the key store. |
String |
getContactInformation()
Returns the contact information used in the signature. |
String |
getLocation()
Gets the location to be used in the signature. |
PrivateKey |
getPrivateKey()
Returns the private key retrieved from the KeyStore or PKCS #12 file. |
String |
getReason()
Gets the reason for signing to be used in the signature. |
SignatureAppearance |
getSignatureAppearance()
Returns the SignatureAppearance to use when creating the
signature appearance stream. |
Certificate |
getSignerCertificate()
Returns the certificate for the digital id retrieved from the KeyStore or the PKCS#12 file. |
void |
setContactInformation(String contactInformation)
Sets the contact information to be used in the signature. |
void |
setLocation(String location)
Sets the location to be used in the signature. |
void |
setReason(String reason)
Sets the reason for signing to be used in the signature. |
void |
setSignatureAppearance(SignatureAppearance signAppearance)
Sets the SignatureAppearance to use when creating the
signature appearance stream. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SigningInformation(String pkcs12File,
String ksPWD,
String entryAlias,
String aliasPWD)
throws GeneralSecurityException,
IOException,
PDFException
pkcs12File - The name of the PKCS#12 key store fileksPWD - The key store passwordentryAlias - The alias of the entry to be used in signing.aliasPWD - The password to the alias entry.
GeneralSecurityException
IOException
PDFException
public SigningInformation(KeyStore ks,
String entryAlias,
String aliasPWD)
throws GeneralSecurityException,
PDFException
ks - The KeyStore object that contains the digital ID.entryAlias - The alias of the entry to be used in signing.aliasPWD - The password to the alias entry.
GeneralSecurityException
PDFException| Method Detail |
public String getContactInformation()
public void setContactInformation(String contactInformation)
contactInformation - The new contact information.public String getLocation()
public void setLocation(String location)
location - The new location.public String getReason()
public void setReason(String reason)
reason - The new reason.public PrivateKey getPrivateKey()
public Certificate getSignerCertificate()
public Certificate[] getCertificateChain()
public void setSignatureAppearance(SignatureAppearance signAppearance)
SignatureAppearance to use when creating the
signature appearance stream.
signAppearance - the signAppearance to use when creating the signature appearance streampublic SignatureAppearance getSignatureAppearance()
SignatureAppearance to use when creating the
signature appearance stream.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||