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:
org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.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
ConstructorDescriptionECDSAPublicKey
(org.bouncycastle.asn1.ASN1ObjectIdentifier usage, byte[] ppY) ECDSAPublicKey
(org.bouncycastle.asn1.ASN1ObjectIdentifier usage, BigInteger p, BigInteger a, BigInteger b, byte[] basePoint, BigInteger order, byte[] publicPoint, int cofactor) -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1EncodableVector
getASN1EncodableVector
(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean publicPointOnly) byte[]
byte[]
org.bouncycastle.asn1.ASN1ObjectIdentifier
getUsage()
boolean
org.bouncycastle.asn1.ASN1Primitive
Methods inherited from class org.bouncycastle.asn1.eac.PublicKeyDataObject
getInstance
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
ECDSAPublicKey
public ECDSAPublicKey(org.bouncycastle.asn1.ASN1ObjectIdentifier usage, byte[] ppY) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
ECDSAPublicKey
public ECDSAPublicKey(org.bouncycastle.asn1.ASN1ObjectIdentifier usage, BigInteger p, BigInteger a, BigInteger b, byte[] basePoint, BigInteger order, byte[] publicPoint, int cofactor)
-
-
Method Details
-
getUsage
public org.bouncycastle.asn1.ASN1ObjectIdentifier 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 org.bouncycastle.asn1.ASN1EncodableVector getASN1EncodableVector(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean publicPointOnly) -
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-