| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final KeyStore | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | PublicKeyDecryptionMaterial(KeyStore
The keystore were the private key and the certificate are keystore, String The alias of the private key and the certificate.
If the keystore contains only 1 entry, this parameter can be left null. a, String The password to extract the private key from the keystore. pwd)Create a new public key decryption material. |
| Modifier and Type | Method and Description |
|---|---|
| public X509Certificate | Returns: The certificate that will be used to try to open the document.Returns the certificate contained in the keystore. |
| public String | Returns: The password.Returns the password given by the user and that will be used to open the private key. |
| public Key | Returns: The private key.returns The private key that will be used to open the document protection. |
| alias | back to summary |
|---|---|
| private final String alias | |
| keyStore | back to summary |
|---|---|
| private final KeyStore keyStore | |
| password | back to summary |
|---|---|
| private final String password | |
| PublicKeyDecryptionMaterial | back to summary |
|---|---|
| public PublicKeyDecryptionMaterial(KeyStore keystore, String a, String pwd) Create a new public key decryption material. | |
| getCertificate | back to summary |
|---|---|
| public X509Certificate getCertificate() throws KeyStoreException Returns the certificate contained in the keystore.
| |
| getPassword | back to summary |
|---|---|
| public String getPassword() Returns the password given by the user and that will be used to open the private key.
| |
| getPrivateKey | back to summary |
|---|---|
| public Key getPrivateKey() throws KeyStoreException returns The private key that will be used to open the document protection.
| |