Class Converter

java.lang.Object
org.cryptacular.adapter.Converter

public final class Converter extends Object
Static factory with methods to convert from BC type to the corresponding JCE type.
Author:
Middleware Services
  • Method Details

    • convertPrivateKey

      public static PrivateKey convertPrivateKey(org.bouncycastle.crypto.params.AsymmetricKeyParameter bcKey)
      Produces a PrivateKey from a BC private key type.
      Parameters:
      bcKey - BC private key.
      Returns:
      JCE private key.
    • convertPublicKey

      public static PublicKey convertPublicKey(org.bouncycastle.crypto.params.AsymmetricKeyParameter bcKey)
      Produces a PublicKey from a BC public key type.
      Parameters:
      bcKey - BC public key.
      Returns:
      JCE public key.