Class JcaPGPKeyPair


  • public class JcaPGPKeyPair
    extends PGPKeyPair
    A PGP key pair class that is constructed from JCA/JCE key pairs.
    • Constructor Detail

      • JcaPGPKeyPair

        public JcaPGPKeyPair​(int algorithm,
                             java.security.KeyPair keyPair,
                             java.util.Date date)
                      throws PGPException
        Deprecated.
        Construct version 4 PGP key pair from a JCA/JCE key pair.
        Parameters:
        algorithm - the PGP algorithm the key is for.
        keyPair - the public/private key pair to convert.
        date - the creation date to associate with the key pair.
        Throws:
        PGPException - if conversion fails.
      • JcaPGPKeyPair

        public JcaPGPKeyPair​(int version,
                             int algorithm,
                             java.security.KeyPair keyPair,
                             java.util.Date date)
                      throws PGPException
        Construct PGP key pair from a JCA/JCE key pair.
        Parameters:
        version - key version.
        algorithm - the PGP algorithm the key is for.
        keyPair - the public/private key pair to convert.
        date - the creation date to associate with the key pair.
        Throws:
        PGPException - if conversion fails.
      • JcaPGPKeyPair

        public JcaPGPKeyPair​(int algorithm,
                             PGPAlgorithmParameters parameters,
                             java.security.KeyPair keyPair,
                             java.util.Date date)
                      throws PGPException
        Construct version 4 PGP key pair from a JCA/JCE key pair.
        Parameters:
        algorithm - the PGP algorithm the key is for.
        parameters - additional parameters to be stored against the public key.
        keyPair - the public/private key pair to convert.
        date - the creation date to associate with the key pair.
        Throws:
        PGPException - if conversion fails.
      • JcaPGPKeyPair

        public JcaPGPKeyPair​(int version,
                             int algorithm,
                             PGPAlgorithmParameters parameters,
                             java.security.KeyPair keyPair,
                             java.util.Date date)
                      throws PGPException
        Construct PGP key pair from a JCA/JCE key pair.
        Parameters:
        version - key version.
        algorithm - the PGP algorithm the key is for.
        parameters - additional parameters to be stored against the public key.
        keyPair - the public/private key pair to convert.
        date - the creation date to associate with the key pair.
        Throws:
        PGPException - if conversion fails.