Top Description Fields Constructors Methods
org.bouncycastle.crypto.asymmetric

public final Class AsymmetricECPublicKey

extends AsymmetricECKey
implements AsymmetricPublicKey
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.AsymmetricPublicKey, org.bouncycastle.crypto.AsymmetricKey, org.bouncycastle.crypto.Key
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1OctetString, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .SubjectPublicKeyInfo, org.bouncycastle.asn1.x9.X9ECPoint, .X9ObjectIdentifiers, org.bouncycastle.crypto.Algorithm, .AsymmetricPublicKey, org.bouncycastle.math.ec.ECPoint

Class for Elliptic Curve (EC) public keys.

Field Summary

Modifier and TypeField and Description
private final ECPoint
q

Inherited from org.bouncycastle.crypto.asymmetric.AsymmetricECKey:
algorithmdomainParameters

Constructor Summary

AccessConstructor and Description
public
AsymmetricECPublicKey(Algorithm ecAlg, ECDomainParametersID domainParameterID, byte[] encodedPoint)

public
AsymmetricECPublicKey(Algorithm ecAlg, ECDomainParameters domainParameters, byte[] encodedPoint)

public
public
public
AsymmetricECPublicKey(Algorithm ecAlg, byte[] publicKeyInfoEncoding)

public

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
object to compare to.
o
)

Overrides java.lang.Object.equals.

Implements org.bouncycastle.crypto.Key.equals.

Return true if o is an equivalent key to this.
public byte[]
getEncoded()

Implements org.bouncycastle.crypto.AsymmetricKey.getEncoded.

Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
public ECPoint
getW()

public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements org.bouncycastle.crypto.Key.hashCode.

Return the hashCode for the key.
Inherited from org.bouncycastle.crypto.asymmetric.AsymmetricECKey:
checkApprovedOnlyModeStatusgetAlgorithmgetDomainParameterszeroize

Field Detail

qback to summary
private final ECPoint q

Constructor Detail

AsymmetricECPublicKeyback to summary
public AsymmetricECPublicKey(Algorithm ecAlg, ECDomainParametersID domainParameterID, byte[] encodedPoint)
AsymmetricECPublicKeyback to summary
public AsymmetricECPublicKey(Algorithm ecAlg, ECDomainParameters domainParameters, byte[] encodedPoint)
AsymmetricECPublicKeyback to summary
public AsymmetricECPublicKey(Algorithm ecAlg, ECDomainParametersID domainParameterID, ECPoint q)
AsymmetricECPublicKeyback to summary
public AsymmetricECPublicKey(Algorithm ecAlg, ECDomainParameters domainParameters, ECPoint q)
AsymmetricECPublicKeyback to summary
public AsymmetricECPublicKey(Algorithm ecAlg, byte[] publicKeyInfoEncoding)
AsymmetricECPublicKeyback to summary
public AsymmetricECPublicKey(Algorithm ecAlg, SubjectPublicKeyInfo publicKeyInfo)

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Implements org.bouncycastle.crypto.Key.equals.

Doc from org.bouncycastle.crypto.Key.equals.

Return true if o is an equivalent key to this.

Parameters
o:Object

object to compare to.

Returns:boolean

true if o is the same or equivalent key, false otherwise.

Annotations
@Override
getEncodedback to summary
public byte[] getEncoded()

Implements org.bouncycastle.crypto.AsymmetricKey.getEncoded.

Doc from org.bouncycastle.crypto.AsymmetricKey.getEncoded.

Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.

Returns:byte[]

an encoding of a PrivateKeyInfo or a SubjectPublicKeyInfo structure.

getWback to summary
public ECPoint getW()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.bouncycastle.crypto.Key.hashCode.

Doc from org.bouncycastle.crypto.Key.hashCode.

Return the hashCode for the key.

Returns:int

the key's hashCode.

Annotations
@Override