com.crionics.jpdf.encryption
Class CertificateCredentials
java.lang.Object
com.crionics.jpdf.encryption.CertificateCredentials
- All Implemented Interfaces:
- ICredentials
- Direct Known Subclasses:
- CertificateCredentialsCreation
public class CertificateCredentials
- extends java.lang.Object
- implements ICredentials
Class used to open a document protected with a certificate_security.
|
Constructor Summary |
CertificateCredentials(java.security.PrivateKey privateKey,
java.security.cert.Certificate certificate)
Please provide the following information to open a docuemnt protected
with certificate security.
1. your X509 Certificate 2. the match private key |
|
Method Summary |
java.security.cert.Certificate |
getCertificate()
|
java.lang.Object |
getCredentials()
Internal use: return an internal representation of the credential |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CertificateCredentials
public CertificateCredentials(java.security.PrivateKey privateKey,
java.security.cert.Certificate certificate)
throws PdfException
- Please provide the following information to open a docuemnt protected
with certificate security.
1. your X509 Certificate 2. the match private key
- Parameters:
privateKey - the matching private keycertificate - the certificate to open the document.
- Throws:
PdfException - validation errors
getCertificate
public java.security.cert.Certificate getCertificate()
getCredentials
public java.lang.Object getCredentials()
- Description copied from interface:
ICredentials
- Internal use: return an internal representation of the credential
- Specified by:
getCredentials in interface ICredentials
- Returns:
- an internal representation of the credential
Copyright © 1999-2007 Crionics. All Rights Reserved.