Class AsymmetricECPublicKey
java.lang.Object
org.bouncycastle.crypto.asymmetric.AsymmetricECKey
org.bouncycastle.crypto.asymmetric.AsymmetricECPublicKey
- All Implemented Interfaces:
AsymmetricKey
,AsymmetricPublicKey
,Key
Class for Elliptic Curve (EC) public keys.
-
Field Summary
Fields inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricECKey
algorithm, domainParameters
-
Constructor Summary
ConstructorsConstructorDescriptionAsymmetricECPublicKey
(Algorithm ecAlg, byte[] publicKeyInfoEncoding) AsymmetricECPublicKey
(Algorithm ecAlg, SubjectPublicKeyInfo publicKeyInfo) AsymmetricECPublicKey
(Algorithm ecAlg, ECDomainParametersID domainParameterID, byte[] encodedPoint) AsymmetricECPublicKey
(Algorithm ecAlg, ECDomainParametersID domainParameterID, ECPoint q) AsymmetricECPublicKey
(Algorithm ecAlg, ECDomainParameters domainParameters, byte[] encodedPoint) AsymmetricECPublicKey
(Algorithm ecAlg, ECDomainParameters domainParameters, ECPoint q) -
Method Summary
Methods inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricECKey
checkApprovedOnlyModeStatus, getAlgorithm, getDomainParameters, zeroize
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bouncycastle.crypto.Key
getAlgorithm
-
Constructor Details
-
AsymmetricECPublicKey
public AsymmetricECPublicKey(Algorithm ecAlg, ECDomainParametersID domainParameterID, byte[] encodedPoint) -
AsymmetricECPublicKey
public AsymmetricECPublicKey(Algorithm ecAlg, ECDomainParameters domainParameters, byte[] encodedPoint) -
AsymmetricECPublicKey
-
AsymmetricECPublicKey
-
AsymmetricECPublicKey
-
AsymmetricECPublicKey
-
-
Method Details
-
getEncoded
public byte[] getEncoded()Description copied from interface:AsymmetricKey
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.- Specified by:
getEncoded
in interfaceAsymmetricKey
- Returns:
- an encoding of a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
-
getW
-
equals
Description copied from interface:Key
Return true if o is an equivalent key to this. -
hashCode
public int hashCode()Description copied from interface:Key
Return the hashCode for the key.
-