Class DHUtil


  • public class DHUtil
    extends java.lang.Object
    utility class for converting jce/jca DH objects objects into their org.bouncycastle.crypto counterparts.
    • Constructor Detail

      • DHUtil

        public DHUtil()
    • Method Detail

      • generatePublicKeyParameter

        public static AsymmetricKeyParameter generatePublicKeyParameter​(java.security.PublicKey key)
                                                                 throws java.security.InvalidKeyException
        Throws:
        java.security.InvalidKeyException
      • generatePrivateKeyParameter

        public static AsymmetricKeyParameter generatePrivateKeyParameter​(java.security.PrivateKey key)
                                                                  throws java.security.InvalidKeyException
        Throws:
        java.security.InvalidKeyException