Package org.bouncycastle.asn1.eac
Class ECDSAPublicKey
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.eac.PublicKeyDataObject
org.bouncycastle.asn1.eac.ECDSAPublicKey
- All Implemented Interfaces:
ASN1Encodable
,Encodable
an Iso7816ECDSAPublicKeyStructure structure.
Certificate Holder Authorization ::= SEQUENCE { ASN1TaggedObject primeModulusP; // OPTIONAL ASN1TaggedObject firstCoefA; // OPTIONAL ASN1TaggedObject secondCoefB; // OPTIONAL ASN1TaggedObject basePointG; // OPTIONAL ASN1TaggedObject orderOfBasePointR; // OPTIONAL ASN1TaggedObject publicPointY; //REQUIRED ASN1TaggedObject cofactorF; // OPTIONAL }
-
Constructor Summary
ConstructorsConstructorDescriptionECDSAPublicKey
(ASN1ObjectIdentifier usage, byte[] ppY) ECDSAPublicKey
(ASN1ObjectIdentifier usage, BigInteger p, BigInteger a, BigInteger b, byte[] basePoint, BigInteger order, byte[] publicPoint, int cofactor) -
Method Summary
Modifier and TypeMethodDescriptiongetASN1EncodableVector
(ASN1ObjectIdentifier oid, boolean publicPointOnly) byte[]
byte[]
getUsage()
boolean
Method providing a primitive representation of this object suitable for encoding.Methods inherited from class org.bouncycastle.asn1.eac.PublicKeyDataObject
getInstance
Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
ECDSAPublicKey
- Throws:
IllegalArgumentException
-
ECDSAPublicKey
public ECDSAPublicKey(ASN1ObjectIdentifier usage, BigInteger p, BigInteger a, BigInteger b, byte[] basePoint, BigInteger order, byte[] publicPoint, int cofactor)
-
-
Method Details
-
getUsage
- Specified by:
getUsage
in classPublicKeyDataObject
-
getBasePointG
public byte[] getBasePointG() -
getCofactorF
-
getFirstCoefA
-
getOrderOfBasePointR
-
getPrimeModulusP
-
getPublicPointY
public byte[] getPublicPointY() -
getSecondCoefB
-
hasParameters
public boolean hasParameters() -
getASN1EncodableVector
public ASN1EncodableVector getASN1EncodableVector(ASN1ObjectIdentifier oid, boolean publicPointOnly) -
toASN1Primitive
Description copied from class:ASN1Object
Method providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-