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
- 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
}
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ECDSAPublicKey
public ECDSAPublicKey(ASN1ObjectIdentifier usage,
byte[] ppY)
throws java.lang.IllegalArgumentException
ECDSAPublicKey
public ECDSAPublicKey(ASN1ObjectIdentifier usage,
java.math.BigInteger p,
java.math.BigInteger a,
java.math.BigInteger b,
byte[] basePoint,
java.math.BigInteger order,
byte[] publicPoint,
int cofactor)
getUsage
public ASN1ObjectIdentifier getUsage()
- Overrides:
getUsage
in class PublicKeyDataObject
getBasePointG
public byte[] getBasePointG()
getCofactorF
public java.math.BigInteger getCofactorF()
getFirstCoefA
public java.math.BigInteger getFirstCoefA()
getOrderOfBasePointR
public java.math.BigInteger getOrderOfBasePointR()
getPrimeModulusP
public java.math.BigInteger getPrimeModulusP()
getPublicPointY
public byte[] getPublicPointY()
getSecondCoefB
public java.math.BigInteger getSecondCoefB()
hasParameters
public boolean hasParameters()
getASN1EncodableVector
public ASN1EncodableVector getASN1EncodableVector(ASN1ObjectIdentifier oid,
boolean publicPointOnly)
toASN1Primitive
public ASN1Primitive toASN1Primitive()
- Description copied from class:
ASN1Object
- Method providing a primitive representation of this object suitable for encoding.
- Overrides:
toASN1Primitive
in class ASN1Object
- Following copied from class:
org.bouncycastle.asn1.ASN1Object
- Returns:
- a primitive representation of this object.