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.
-
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
Modifier and TypeMethodDescriptionbooleanReturn true if o is an equivalent key to this.byte[]Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.byte[]getEncoded(boolean withPointCompression) getW()inthashCode()Return the hashCode for the key.Methods inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricECKey
checkApprovedOnlyModeStatus, getAlgorithm, getDomainParameters, isThreadCorrectMode, zeroizeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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: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.
-
getEncoded
public byte[] getEncoded(boolean withPointCompression) -
getW
-
equals
Description copied from interface:KeyReturn true if o is an equivalent key to this. -
hashCode
public int hashCode()Description copied from interface:KeyReturn the hashCode for the key.
-