Class AsymmetricCipherKeyPair


  • public class AsymmetricCipherKeyPair
    extends java.lang.Object
    a holding class for public/private parameter pairs.
    • Constructor Detail

      • AsymmetricCipherKeyPair

        public AsymmetricCipherKeyPair​(AsymmetricKeyParameter publicParam,
                                       AsymmetricKeyParameter privateParam)
        basic constructor.
        Parameters:
        publicParam - a public key parameters object.
        privateParam - the corresponding private key parameters.
      • AsymmetricCipherKeyPair

        public AsymmetricCipherKeyPair​(CipherParameters publicParam,
                                       CipherParameters privateParam)
        Deprecated.
        use AsymmetricKeyParameter
        basic constructor.
        Parameters:
        publicParam - a public key parameters object.
        privateParam - the corresponding private key parameters.
    • Method Detail

      • getPublic

        public AsymmetricKeyParameter getPublic()
        return the public key parameters.
        Returns:
        the public key parameters.
      • getPrivate

        public AsymmetricKeyParameter getPrivate()
        return the private key parameters.
        Returns:
        the private key parameters.