Module io.github.mmm.crypto.bc
Class AsymmetricKeyPairEcBc
- java.lang.Object
-
- io.github.mmm.crypto.asymmetric.key.AbstractAsymmetricKeyPair<PR,PU>
-
- io.github.mmm.crypto.asymmetric.key.ec.AsymmetricKeyPairEc<org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey>
-
- io.github.mmm.crypto.asymmetric.key.ec.bc.AsymmetricKeyPairEcBc
-
- All Implemented Interfaces:
AsymmetricKeyPair<org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey>
,KeySet
public class AsymmetricKeyPairEcBc extends AsymmetricKeyPairEc<org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey>
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from class io.github.mmm.crypto.asymmetric.key.ec.AsymmetricKeyPairEc
ALGORITHM_EC, FORMAT_UNCOMORESSED
-
Fields inherited from class io.github.mmm.crypto.asymmetric.key.AbstractAsymmetricKeyPair
privateKey, publicKey
-
-
Constructor Summary
Constructors Constructor Description AsymmetricKeyPairEcBc(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey privateKey)
The constructor.AsymmetricKeyPairEcBc(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey privateKey, org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey publicKey)
The constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey
createPrivateKey(BigInteger s, org.bouncycastle.jce.spec.ECParameterSpec ecParameters)
static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey
createPrivateKey(org.bouncycastle.jce.spec.ECPrivateKeySpec keySpec)
static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey
createPrivateKeyFromEncodedData(byte[] data)
static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey
createPublicKey(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey privateKey)
static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey
createPublicKey(org.bouncycastle.jce.spec.ECPublicKeySpec keySpec)
static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey
createPublicKey(org.bouncycastle.math.ec.ECPoint q, org.bouncycastle.jce.spec.ECParameterSpec ecParameters)
static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey
createPublicKeyFromEncodedData(byte[] data)
-
Methods inherited from class io.github.mmm.crypto.asymmetric.key.AbstractAsymmetricKeyPair
equals, getKeyPair, getPrivateKey, getPublicKey, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.mmm.crypto.asymmetric.key.AsymmetricKeyPair
getKeys
-
-
-
-
Constructor Detail
-
AsymmetricKeyPairEcBc
public AsymmetricKeyPairEcBc(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey privateKey)
The constructor.- Parameters:
privateKey
- theprivate key
.
-
AsymmetricKeyPairEcBc
public AsymmetricKeyPairEcBc(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey privateKey, org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey publicKey)
The constructor.- Parameters:
privateKey
- theprivate key
.publicKey
- thepublic key
.
-
-
Method Detail
-
createPrivateKey
public static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey createPrivateKey(BigInteger s, org.bouncycastle.jce.spec.ECParameterSpec ecParameters)
- Parameters:
s
- the private key values
.ecParameters
- theECParameterSpec
representing the curve.- Returns:
- the
BCECPrivateKey
.
-
createPrivateKey
public static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey createPrivateKey(org.bouncycastle.jce.spec.ECPrivateKeySpec keySpec)
- Parameters:
keySpec
- theECPrivateKeySpec
.- Returns:
- the
BCECPrivateKey
.
-
createPrivateKeyFromEncodedData
public static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey createPrivateKeyFromEncodedData(byte[] data)
- Parameters:
data
- theencoded data
.- Returns:
- the
BCECPrivateKey
.
-
createPublicKey
public static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey createPublicKey(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey privateKey)
- Parameters:
privateKey
- theBCECPrivateKey
.- Returns:
- the corresponding
BCECPublicKey
.
-
createPublicKey
public static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey createPublicKey(org.bouncycastle.math.ec.ECPoint q, org.bouncycastle.jce.spec.ECParameterSpec ecParameters)
- Parameters:
q
- the public key valueq
.ecParameters
- theECParameterSpec
representing the curve.- Returns:
- the
ECPublicKey
.
-
createPublicKey
public static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey createPublicKey(org.bouncycastle.jce.spec.ECPublicKeySpec keySpec)
- Parameters:
keySpec
- theECPublicKeySpec
.- Returns:
- the
ECPublicKey
.
-
createPublicKeyFromEncodedData
public static org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey createPublicKeyFromEncodedData(byte[] data)
- Parameters:
data
- theencoded data
.- Returns:
- the
ECPublicKey
.
-
-