public class PublicKeyPromptEncryptionHandler extends PublicKeyEncryptionHandler
PublicKeyEncryptionHandler
that will pop up a
dialog allowing the user to select a KeyStore to select a private key from
if necessary.
This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.
Constructor and Description |
---|
PublicKeyPromptEncryptionHandler(JComponent parent,
KeyStoreManager manager) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
chooseRecipient(X500Principal[] issuers,
BigInteger[] serials)
This method is called by
PublicKeyEncryptionHandler.prepareToDecrypt() to give an implementation
the chance to select an appropriate entry from the KeyStore if it hasn't
already been done. |
void |
setAlias(String alias,
char[] password) |
addRecipient, finishedDecrypt, finishedEncrypt, getChange, getDecryptionStream, getDescription, getEncryptedStreamLength, getEncryptionStream, getExtract, getFilterName, getPrint, getSubFilterName, hasRight, isMetadataEncrypted, isRequired, prepareToDecrypt, prepareToEncrypt, setDecryptionKey, setEncryptedMetadata
clone, containsKey, getArrayValueSize, getBooleanValue, getDecryptedStreamLength, getDictionaryValueKeys, getFileId, getNameValue, getNumericValue, getStringValue, getTextStringValue, isChanged, isEmbeddedFileEncrypted, isStreamEncrypted, isStringEncrypted, markChanged, putArrayValue, putBooleanValue, putDictionaryValue, putNameValue, putNumericValue, putStringValue, putTextStringValue, setFileId
public PublicKeyPromptEncryptionHandler(JComponent parent, KeyStoreManager manager)
public void setAlias(String alias, char[] password)
protected boolean chooseRecipient(X500Principal[] issuers, BigInteger[] serials)
PublicKeyEncryptionHandler
PublicKeyEncryptionHandler.prepareToDecrypt()
to give an implementation
the chance to select an appropriate entry from the KeyStore if it hasn't
already been done. The supplied arrays are equal length and indicate
the Issuer and SerialNumber of all the recipients that can decrypt this
document. By default this method does nothing.chooseRecipient
in class PublicKeyEncryptionHandler
issuers
- an array listing all the X.509 Certificate Issuersserials
- an array listing all the X.509 Certificate Serial Numbers.Copyright © 2001-2017 Big Faceless Organization