Class AsymmetricECPublicKey
- java.lang.Object
-
- org.bouncycastle.crypto.asymmetric.AsymmetricECKey
-
- org.bouncycastle.crypto.asymmetric.AsymmetricECPublicKey
-
- All Implemented Interfaces:
AsymmetricKey,AsymmetricPublicKey,Key
public final class AsymmetricECPublicKey extends AsymmetricECKey implements AsymmetricPublicKey
Class for Elliptic Curve (EC) public keys.
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricECKey
algorithm, domainParameters
-
-
Constructor Summary
Constructors Constructor Description AsymmetricECPublicKey(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Return true if o is an equivalent key to this.byte[]getEncoded()Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.ECPointgetW()inthashCode()Return the hashCode for the key.-
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 Detail
-
AsymmetricECPublicKey
public AsymmetricECPublicKey(Algorithm ecAlg, ECDomainParametersID domainParameterID, byte[] encodedPoint)
-
AsymmetricECPublicKey
public AsymmetricECPublicKey(Algorithm ecAlg, ECDomainParameters domainParameters, byte[] encodedPoint)
-
AsymmetricECPublicKey
public AsymmetricECPublicKey(Algorithm ecAlg, ECDomainParametersID domainParameterID, ECPoint q)
-
AsymmetricECPublicKey
public AsymmetricECPublicKey(Algorithm ecAlg, ECDomainParameters domainParameters, ECPoint q)
-
AsymmetricECPublicKey
public AsymmetricECPublicKey(Algorithm ecAlg, byte[] publicKeyInfoEncoding)
-
AsymmetricECPublicKey
public AsymmetricECPublicKey(Algorithm ecAlg, SubjectPublicKeyInfo publicKeyInfo)
-
-
Method Detail
-
getEncoded
public byte[] getEncoded()
Description copied from interface:AsymmetricKeyReturn an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.- Specified by:
getEncodedin interfaceAsymmetricKey- Returns:
- an encoding of a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
-
getW
public ECPoint getW()
-
equals
public boolean equals(java.lang.Object o)
Description copied from interface:KeyReturn true if o is an equivalent key to this.
-
-