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
public class ECDSAPublicKey extends PublicKeyDataObject
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
Constructors Constructor Description ECDSAPublicKey(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.ASN1EncodableVector
getASN1EncodableVector(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean publicPointOnly)
byte[]
getBasePointG()
BigInteger
getCofactorF()
BigInteger
getFirstCoefA()
BigInteger
getOrderOfBasePointR()
BigInteger
getPrimeModulusP()
byte[]
getPublicPointY()
BigInteger
getSecondCoefB()
org.bouncycastle.asn1.ASN1ObjectIdentifier
getUsage()
boolean
hasParameters()
org.bouncycastle.asn1.ASN1Primitive
toASN1Primitive()
-
Methods inherited from class org.bouncycastle.asn1.eac.PublicKeyDataObject
getInstance
-
-
-
-
Constructor Detail
-
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 Detail
-
getUsage
public org.bouncycastle.asn1.ASN1ObjectIdentifier getUsage()
- Specified by:
getUsage
in classPublicKeyDataObject
-
getBasePointG
public byte[] getBasePointG()
-
getCofactorF
public BigInteger getCofactorF()
-
getFirstCoefA
public BigInteger getFirstCoefA()
-
getOrderOfBasePointR
public BigInteger getOrderOfBasePointR()
-
getPrimeModulusP
public BigInteger getPrimeModulusP()
-
getPublicPointY
public byte[] getPublicPointY()
-
getSecondCoefB
public BigInteger 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
-
-