|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use KeyStore | |
---|---|
com.didisoft.pgp | OpenPGP Library for Java |
Uses of KeyStore in com.didisoft.pgp |
---|
Methods in com.didisoft.pgp that return KeyStore | |
---|---|
static KeyStore |
KeyStore.openFile(java.lang.String filename,
java.lang.String password)
Initializes a new Key Store object. |
static KeyStore |
KeyStore.openInMemory()
Creates a new in-memory KeyStore instance. |
Methods in com.didisoft.pgp with parameters of type KeyStore | |
---|---|
void |
RevocationLib.assignDesignatedRevoker(KeyStore keyStore,
long keyId,
java.lang.String privateKeyPassword,
long revokerKeyId)
Authorizes the specified key as designated revoker for this key. |
void |
RevocationLib.assignDesignatedRevoker(KeyStore keyStore,
java.lang.String userId,
java.lang.String privateKeyPassword,
java.lang.String revokerUserId)
Authorizes the specified key as designated revoker for this key. |
void |
RevocationLib.createRevocationCertificateInFile(KeyStore keyStore,
long keyId,
java.lang.String privateKeyPassword,
byte reason,
java.lang.String description,
java.lang.String outputFileName)
Creates a key revocation certificate for a given OpenPGP key located in a KeyStore and stores it in a file. |
void |
RevocationLib.createRevocationCertificateInFile(KeyStore keyStore,
java.lang.String userId,
java.lang.String privateKeyPassword,
byte reason,
java.lang.String description,
java.lang.String outputFileName)
Creates a key revocation certificate for a given OpenPGP key located in a KeyStore and stores it in a file. |
java.lang.String |
RevocationLib.createRevocationCertificateText(KeyStore keyStore,
long keyId,
java.lang.String privateKeyPassword,
byte reason,
java.lang.String description)
Creates a revocation certificate for a given OpenPGP key in ASCII armored string format. |
java.lang.String |
RevocationLib.createRevocationCertificateText(KeyStore keyStore,
java.lang.String userId,
java.lang.String privateKeyPassword,
byte reason,
java.lang.String description)
Creates a revocation certificate for a given OpenPGP key in ASCII armored string format. |
boolean |
PGPLib.decryptAndVerifyFile(java.lang.String encryptedFileName,
KeyStore keyStore,
java.lang.String privateKeyPassword,
java.lang.String outputFileName)
Decrypts and verifies one pass encrypted and signed OpenPGP file Supports OpenPGP version 3 format too (used by PGP 6.5 and below). |
boolean |
PGPLib.decryptAndVerifyFileTo(java.lang.String encryptedFileName,
KeyStore keyStore,
java.lang.String privateKeyPassword,
java.lang.String outputFolder)
Decrypts and verifies one pass encrypted and signed OpenPGP file Supports OpenPGP version 3 format too (used by PGP 6.5 and below). |
boolean |
PGPLib.decryptAndVerifyStream(java.io.InputStream encryptedStream,
KeyStore keyStore,
java.lang.String privateKeyPassword,
java.io.OutputStream outputStream)
Decrypts and verifies OpenPGP encrypted and signed stream. |
boolean |
PGPLib.decryptAndVerifyStreamTo(java.io.InputStream encryptedStream,
KeyStore keyStore,
java.lang.String privateKeyPassword,
java.lang.String outputFolder)
Decrypts and verifies OpenPGP encrypted and signed stream. |
java.lang.String |
PGPLib.decryptFile(java.lang.String encryptedFileName,
KeyStore pgpKeyStore,
java.lang.String privateKeyPassword,
java.lang.String outputFileName)
Decrypts an OpenPGP encrypted file using key from a OpenPGP key store. |
java.lang.String[] |
PGPLib.decryptFileTo(java.lang.String encryptedFileName,
KeyStore keyStore,
java.lang.String privateKeyPassword,
java.lang.String outputFolder)
Decrypts the content of an OpenPGP encrypted file into a folder. |
java.lang.String |
PGPLib.decryptStream(java.io.InputStream encryptedStream,
KeyStore pgpKeyStore,
java.lang.String privateKeyPassword,
java.io.OutputStream outputStream)
Decrypts an OpenPGP encrypted stream using a private key supplied as an input stream. |
java.lang.String[] |
PGPLib.decryptStreamTo(java.io.InputStream encryptedStream,
KeyStore keyStore,
java.lang.String privateKeyPassword,
java.lang.String outputFolder)
Decrypts an OpenPGP encrypted stream to a specified folder. |
void |
PGPLib.detachedSignStream(java.io.InputStream dataStream,
KeyStore keyStore,
long keyId,
java.lang.String privateKeyPassword,
java.io.OutputStream outStream,
boolean asciiArmor)
Creates an OpenPGP detached signature for a given data stream contents. |
void |
PGPLib.detachedSignStream(java.io.InputStream dataStream,
KeyStore keyStore,
java.lang.String userId,
java.lang.String privateKeyPassword,
java.io.OutputStream outStream,
boolean asciiArmor)
Creates an OpenPGP detached signature for a given data stream contents. |
boolean |
PGPLib.detachedVerifyStream(java.io.InputStream dataFileStream,
java.io.InputStream detachedSignatureStream,
KeyStore keyStore)
Verifies that an OpenPGP detached signature is signed from a trusted sender. |
void |
PGPLib.encryptFile(java.lang.String dataFileName,
KeyStore keyStore,
long[] recipientsKeyIds,
java.lang.String outputFileName,
boolean asciiArmor,
boolean withIntegrityCheck)
OpenPGP encrypts a file for multiple recipients. Compression algorithm used is the one specified with PGPLib.setCompression(String)
Symmetric cipher algorithm used is the one specified with PGPLib.setCypher(String)
Example: |
void |
PGPLib.encryptFile(java.lang.String dataFileName,
KeyStore keyStore,
long keyId,
java.lang.String outputFileName)
OpenPGP encrypts given file using specified public key, stored in specified OpenPGP key store. |
void |
PGPLib.encryptFile(java.lang.String dataFileName,
KeyStore keyStore,
long keyId,
java.lang.String outputFileName,
boolean asciiArmor,
boolean withIntegrityCheck)
OpenPGP encrypts given file using specified public key, stored in specified OpenPGP key store. |
void |
PGPLib.encryptFile(java.lang.String dataFileName,
KeyStore keyStore,
java.lang.String[] recipientsUserIds,
java.lang.String outputFileName,
boolean asciiArmor,
boolean withIntegrityCheck)
OpenPGP encrypts a file for multiple recipients. Compression algorithm used is the one specified with PGPLib.setCompression(String)
Symmetric cipher algorithm used is the one specified with PGPLib.setCypher(String)
Example: |
void |
PGPLib.encryptFile(java.lang.String dataFileName,
KeyStore keyStore,
java.lang.String userId,
java.lang.String outputFileName)
OpenPGP encrypts given file using specified public key, stored in specified OpenPGP key store. |
void |
PGPLib.encryptFile(java.lang.String dataFileName,
KeyStore keyStore,
java.lang.String userId,
java.lang.String outputFileName,
boolean asciiArmor,
boolean withIntegrityCheck)
OpenPGP encrypts given file using specified public key, stored in specified OpenPGP key store. |
int |
PGPLib.encryptFileByKeyId(KeyStore keyStore,
java.lang.String dataFileName,
java.lang.String keyIdHex,
java.lang.String outputFileName)
Deprecated. Use instead |
int |
PGPLib.encryptFileByUserId(KeyStore keyStore,
java.lang.String dataFileName,
java.lang.String userID,
java.lang.String outputFileName)
Deprecated. Use instead |
void |
PGPLib.encryptFiles(java.lang.String[] dataFileNames,
KeyStore keyStore,
long[] recipientsKeyIds,
java.lang.String outputFileName,
boolean asciiArmor,
boolean withIntegrityCheck)
OpenPGP encrypts multiple files into one OpenPGP archive Compression algorithm used is the one specified with PGPLib.setCompression(String)
Symmetric cipher algorithm used is the one specified with PGPLib.setCypher(String)
Example usage: |
void |
PGPLib.encryptFiles(java.lang.String[] dataFileNames,
KeyStore keyStore,
java.lang.String[] recipientsUserIds,
java.lang.String outputFileName,
boolean asciiArmor,
boolean withIntegrityCheck)
OpenPGP encrypts multiple files into one OpenPGP archive Compression algorithm used is the one specified with PGPLib.setCompression(String)
Symmetric cipher algorithm used is the one specified with PGPLib.setCypher(String)
Example: |
void |
PGPLib.encryptStream(java.io.InputStream dataStream,
java.lang.String fileName,
KeyStore keyStore,
long keyId,
java.io.OutputStream out,
boolean asciiArmor,
boolean withIntegrityCheck)
OpenPGP encrypts input stream using a recipient public key located in a KeyStore Compression algorithm used is the one specified with PGPLib.setCompression(String) if supported
by the public key, otherwise the first supported by the key algorithm is used. |
void |
PGPLib.encryptStream(java.io.InputStream dataStream,
java.lang.String fileName,
KeyStore keyStore,
java.lang.String userId,
java.io.OutputStream out,
boolean asciiArmor,
boolean withIntegrityCheck)
OpenPGP Encrypts Input Stream using a Public key located in a KeyStore Compression algorithm used is the one specified with PGPLib.setCompression(String) if supported
by the public key, otherwise the first supported by the key algorithm is used. |
KeyPairInformation[] |
KeyStore.importKeyStore(KeyStore keyStore)
Imports the keys contained in another KeyStore object into the current instance. |
void |
RevocationLib.revokeKey(KeyStore keyStore,
long keyId,
java.lang.String privateKeyPassword,
byte reason,
java.lang.String description)
Revokes a public key or sub key from a KeyStore. |
void |
RevocationLib.revokeKey(KeyStore keyStore,
java.lang.String userId,
java.lang.String privateKeyPassword,
byte reason,
java.lang.String description)
Revokes a public key or sub key from a KeyStore. |
void |
RevocationLib.revokeKeyWithDesignatedRevoker(KeyStore keyStore,
long keyId,
long revokerKeyId,
java.lang.String revokerPassword,
byte reason,
java.lang.String description)
Revokes an OpenPGP public key located in a KeyStore with a designated revoker. |
void |
RevocationLib.revokeKeyWithDesignatedRevoker(KeyStore keyStore,
java.lang.String userId,
java.lang.String revokerUserId,
java.lang.String revokerPassword,
byte reason,
java.lang.String description)
Revokes an OpenPGP public key located in a KeyStore with a designated revoker. |
void |
RevocationLib.revokeKeyWithRevocationCertificateFile(KeyStore keyStore,
java.lang.String certificateFileName)
Revokes a key or subkey from an OpenPGP key ring located in a KeyStore. |
void |
RevocationLib.revokeKeyWithRevocationCertificateText(KeyStore keyStore,
java.lang.String certificateText)
Revokes a key or subkey located in an OpenPGP KeyStore using a revocation certificate supplied as text. |
void |
RevocationLib.revokeUserIdSignature(KeyStore keyStore,
long keyId,
java.lang.String userId,
java.lang.String privateKeyPassword,
byte reason,
java.lang.String description)
Revokes a User Id signature binding from an OpenPGP public key located in a KeyStore Note: the corresponding private key must also exist in this KeyStore in order the signature to be produced. |
void |
RevocationLib.revokeUserIdSignature(KeyStore keyStore,
java.lang.String userId,
java.lang.String privateKeyPassword,
byte reason,
java.lang.String description)
Revokes a User Id signature binding from an OpenPGP public key located in a KeyStore Note: if more than one key has this User ID signature use @link RevocationLib.revokeUserIdSignature(KeyStore, long, String, String, byte, String) instead
Equivalent GPG command: gpg --edit-key [userId] revsig |
void |
PGPLib.signAndEncryptFile(java.lang.String fileName,
KeyStore keyStore,
long signKeyId,
java.lang.String privateKeyPassword,
long[] encKeyIds,
java.lang.String outputFileName,
boolean asciiArmor,
boolean withIntegrityCheck)
OpenPGP signs and encrypts a file in one pass for multiple recipients. |
void |
PGPLib.signAndEncryptFile(java.lang.String fileName,
KeyStore keyStore,
long signKeyId,
java.lang.String privateKeyPassword,
long encKeyId,
java.lang.String outputFileName,
boolean asciiArmor,
boolean withIntegrityCheck)
OpenPGP signs and encrypts a file in one pass. |
void |
PGPLib.signAndEncryptFile(java.lang.String fileName,
KeyStore keyStore,
java.lang.String signUserId,
java.lang.String privateKeyPassword,
java.lang.String[] encUserIds,
java.lang.String outputFileName,
boolean asciiArmor,
boolean withIntegrityCheck)
OpenPGP signs and encrypts a file in one pass for multiple recipients. |
void |
PGPLib.signAndEncryptFile(java.lang.String fileName,
KeyStore keyStore,
java.lang.String signUserId,
java.lang.String privateKeyPassword,
java.lang.String encUserId,
java.lang.String outputFileName,
boolean asciiArmor,
boolean withIntegrityCheck)
OpenPGP signs and encrypts a file in one pass. |
void |
PGPLib.signAndEncryptStream(java.io.InputStream dataFileStream,
java.lang.String internalFileName,
KeyStore keyStore,
java.lang.String signUserId,
java.lang.String privateKeyPassword,
java.lang.String encUserId,
java.io.OutputStream outputStream,
boolean asciiArmor,
boolean withIntegrityCheck)
OpenPGP signs and encrypts a file in one pass. |
void |
PGPLib.signFile(KeyStore keyStore,
java.lang.String dataFileName,
long privateKeyId,
java.lang.String privateKeyPassword,
java.lang.String outputFileName)
OpenPGP signs given file using specified Private Key, using OpenPGP Key Store. |
void |
PGPLib.signFile(KeyStore keyStore,
java.lang.String dataFileName,
java.lang.String keyIdHex,
java.lang.String privateKeyPassword,
java.lang.String outputFileName)
OpenPGP signs given file using specified Private Key, using OpenPGP Key Store. |
void |
PGPLib.signFile(java.lang.String dataFileName,
KeyStore keyStore,
long privateKeyId,
java.lang.String privateKeyPassword,
java.lang.String outputFileName,
boolean asciiArmor)
OpenPGP signs a file, with private key stored in a KeyStore object. |
void |
PGPLib.signFile(java.lang.String dataFileName,
KeyStore keyStore,
java.lang.String privateKeyUserId,
java.lang.String privateKeyPassword,
java.lang.String outputFileName,
boolean asciiArmor)
OpenPGP signs a file, with private key stored in a KeyStore object. |
void |
PGPLib.signStream(java.io.InputStream dataInputStream,
java.lang.String fileNameLabel,
KeyStore keyStore,
long signingKeyId,
java.lang.String privateKeyPassword,
java.io.OutputStream signedStream,
boolean asciiArmor)
OpenPGP signs stream with a private key stored in a KeyStore. |
void |
PGPLib.signStream(java.io.InputStream dataInputStream,
java.lang.String fileNameLabel,
KeyStore keyStore,
java.lang.String signingKeyUserId,
java.lang.String privateKeyPassword,
java.io.OutputStream signedStream,
boolean asciiArmor)
OpenPGP signs stream with a private key stored in a KeyStore. |
boolean |
PGPLib.verifyFile(java.lang.String dataFileName,
KeyStore keyStore,
java.lang.String outputFileName)
Verifies the incoming file as being correctly signed. |
boolean |
PGPLib.verifyStream(java.io.InputStream dataFileStream,
KeyStore keyStore,
java.io.OutputStream outputFileStream)
Verifies the incoming stream as being correctly signed. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |