public class PublicKeyDecryptionMaterial extends DecryptionMaterial
| Constructor and Description | 
|---|
| PublicKeyDecryptionMaterial(KeyStore keystore,
                           String a,
                           String pwd)Create a new public key decryption material. | 
| Modifier and Type | Method and Description | 
|---|---|
| X509Certificate | getCertificate()Returns the certificate contained in the keystore. | 
| String | getPassword()Returns the password given by the user and that will be used
 to open the private key. | 
| Key | getPrivateKey()returns The private key that will be used to open the document protection. | 
public PublicKeyDecryptionMaterial(KeyStore keystore, String a, String pwd)
keystore - The keystore were the private key and the certificate area - The alias of the private key and the certificate.
   If the keystore contains only 1 entry, this parameter can be left null.pwd - The password to extract the private key from the keystore.public X509Certificate getCertificate() throws KeyStoreException
KeyStoreException - If there is an error accessing the certificate.public String getPassword()
public Key getPrivateKey() throws KeyStoreException
KeyStoreException - If there is an error accessing the key.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.