Class AsymmetricKeyPairFactoryEcBc

    • Constructor Detail

      • AsymmetricKeyPairFactoryEcBc

        public AsymmetricKeyPairFactoryEcBc​(org.bouncycastle.jce.spec.ECParameterSpec ecParameters)
        The constructor.
        Parameters:
        ecParameters - the ECParameterSpec.
      • AsymmetricKeyPairFactoryEcBc

        public AsymmetricKeyPairFactoryEcBc​(org.bouncycastle.jce.spec.ECParameterSpec ecParameters,
                                            KeyFactory keyFactory)
        The constructor.
        Parameters:
        ecParameters - the ECParameterSpec.
        keyFactory - the KeyFactory.
    • Method Detail

      • asData

        public byte[] asData​(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey privateKey)
        Parameters:
        privateKey - the PrivateKey to serialize.
        Returns:
        the serialized binary data.
      • createPrivateKey

        public org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey createPrivateKey​(byte[] data)
        Parameters:
        data - the PrivateKey as raw byte array.
        Returns:
        the deserialized PrivateKey.
      • createKeyPair

        public AsymmetricKeyPairEcBc createKeyPair​(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey privateKey,
                                                   org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey publicKey)
        Parameters:
        privateKey - the PrivateKey.
        publicKey - the corresponding PublicKey.
        Returns:
        the AsymmetricKeyPair.