Uses of Class
com.didisoft.pgp.KeyPairInformation

Packages that use KeyPairInformation
com.didisoft.pgp OpenPGP Library for Java 
 

Uses of KeyPairInformation in com.didisoft.pgp
 

Subclasses of KeyPairInformation in com.didisoft.pgp
 class PGPKeyPair
          Represents an OpenPGP key loaded from a key file.
 

Methods in com.didisoft.pgp that return KeyPairInformation
 KeyPairInformation KeyStore.generateEccKeyPair(java.lang.String ecCurve, java.lang.String userId, java.lang.String privateKeyPassword)
          Generates an OpenPGP key pair with Elliptic Curve cryptography (ECC) asymmetric encryption algorithm

Default algorithms for the key are:
Symmetric cipher: AES-256, AES-192, AES-128
Hash: SHA-512, SHA-384, SHA-256
Compression: ZIP, ZLIB, BZIP2, Uncompressed
 KeyPairInformation KeyStore.generateEccKeyPair(java.lang.String ecCurve, java.lang.String userId, java.lang.String privateKeyPassword, long expirationAfterDays)
          Generates an OpenPGP key pair with Elliptic Curve cryptography (ECC) asymmetric encryption algorithm

Default algorithms for the key are:
Symmetric cipher: AES-256, AES-192, AES-128
Hash: SHA-512, SHA-384, SHA-256
Compression: ZIP, ZLIB, BZIP2, Uncompressed
 KeyPairInformation KeyStore.generateEccKeyPair(java.lang.String ecCurve, java.lang.String userId, java.lang.String privateKeyPassword, java.lang.String[] compressionTypes, java.lang.String[] hashingAlgorithmTypes, java.lang.String[] cipherTypes)
          Generates an OpenPGP key pair with Elliptic Curve cryptography (ECC) asymmetric encryption algorithm

Note: The generated key pair has no expiration date
 KeyPairInformation KeyStore.generateEccKeyPair(java.lang.String ecCurve, java.lang.String userId, java.lang.String privateKeyPassword, java.lang.String[] compressionTypes, java.lang.String[] hashingAlgorithmTypes, java.lang.String[] cipherTypes, long expirationAfterDays)
          Generates an OpenPGP key pair with Elliptic Curve cryptography (ECC) asymmetric encryption algorithm
 KeyPairInformation KeyStore.generateElGamalKeyPair(int keySize, java.lang.String userId, java.lang.String password)
          Generates OpenPGP Key pair with ElGamal (DH/DSS) encryption and predefined values for compression, hashing and cypher like the ones generated with PGP Desktop(tm) key generation wizard.
 KeyPairInformation KeyStore.generateKeyPair(int keySize, java.lang.String userId, java.lang.String password)
          Generates OpenPGP Key pair with RSA encryption and predefined values for compression, hashing and cypher like the ones generated with PGP Desktop(tm) key generation wizard.
 KeyPairInformation KeyStore.generateKeyPair(int keySize, java.lang.String userId, java.lang.String keyAlgorithm, java.lang.String password, java.lang.String[] compressionTypes, java.lang.String[] hashingAlgorithmTypes, java.lang.String[] cipherTypes)
          Generates OpenPGP key pair (public and private key).
 KeyPairInformation KeyStore.generateKeyPair(int keySize, java.lang.String userId, java.lang.String keyAlgorithm, java.lang.String password, java.lang.String[] compressionTypes, java.lang.String[] hashingAlgorithmTypes, java.lang.String[] cipherTypes, long expirationAfterDays)
          Generates OpenPGP key pair (public and private key).
 KeyPairInformation KeyStore.generateKeyPair(int keySize, java.lang.String userId, java.lang.String keyAlgorithm, java.lang.String password, java.lang.String compressionTypes, java.lang.String hashingAlgorithmTypes, java.lang.String cipherTypes)
          Generates OpenPGP Key pair (public and private key).
 KeyPairInformation KeyStore.generateKeyPair(int keySize, java.lang.String userId, java.lang.String keyAlgorithm, java.lang.String password, java.lang.String compressionTypes, java.lang.String hashingAlgorithmTypes, java.lang.String cipherTypes, long expirationAfterDays)
          Generates OpenPGP Key pair (public and private key).
 KeyPairInformation KeyStore.generateRsaKeyPair(int keySize, java.lang.String userId, java.lang.String password)
          Generates OpenPGP Key pair with RSA encryption and predefined values for compression, hashing and cypher like the ones generated with PGP Desktop(tm) key generation wizard.
 KeyPairInformation KeyStore.getKey(long keyId)
          Returns the key pair with the specified Key Id
 KeyPairInformation KeyStore.getKey(java.lang.String userId)
          Returns the key pair with the specified User Id
 KeyPairInformation[] KeyStore.getKeys()
          Returns the key pairs stored in this OpenPGP key store.
 KeyPairInformation[] KeyStore.importKeyRing(java.io.InputStream keyStream)
          Imports OpenPGP key ring stream into this KeyStore instance.
 KeyPairInformation[] KeyStore.importKeyRing(java.io.InputStream keyStream, java.lang.String privateKeyPassword)
          Imports OpenPGP key ring stream into this KeyStore instance.
 KeyPairInformation[] KeyStore.importKeyRing(java.lang.String keyRingFileName)
          Imports OpenPGP key ring into this KeyStore instance.
 KeyPairInformation[] KeyStore.importKeyRing(java.lang.String keyRingFileName, java.lang.String privateKeyPassword)
          Imports OpenPGP key ring into this KeyStore instance.
 KeyPairInformation[] KeyStore.importKeyStore(KeyStore keyStore)
          Imports the keys contained in another KeyStore object into the current instance.
 KeyPairInformation[] KeyStore.importPrivateKey(java.io.InputStream privateKeyStream)
          Imports private key stream into this KeyStore instance.
 KeyPairInformation[] KeyStore.importPrivateKey(java.io.InputStream privateKeyStream, java.lang.String password)
          Imports private key stream into this KeyStore instance.
 KeyPairInformation[] KeyStore.importPrivateKey(java.lang.String privateKeyFileName)
          Imports a private key file into this KeyStore instance.
 KeyPairInformation[] KeyStore.importPrivateKey(java.lang.String privateKeyFileName, java.lang.String password)
          Imports private key file into this KeyStore instance.
 KeyPairInformation[] KeyStore.importPublicKey(java.io.InputStream publicKeyStream)
          Imports an OpenPGP public key into this KeyStore instance.
 KeyPairInformation[] KeyStore.importPublicKey(java.lang.String publicKeyFileName)
          Imports an OpenPGP public key into this KeyStore instance.
 KeyPairInformation[] KeyStore.listKeys()
          Lists keys stored in this OpenPGP key store to the System.out

Example:
 



Copyright © 2006-2013 DidiSoft Ltd. All Rights Reserved.