Top Description Fields Constructors Methods
org.bouncycastle.asn1.eac

public Class ECDSAPublicKey

extends PublicKeyDataObject
Class Inheritance
Imports
java.math.BigInteger, java.util.Enumeration, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1ObjectIdentifier, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DEROctetString, .DERSequence, .DERTaggedObject, org.bouncycastle.util.Arrays

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
 }

Field Summary

Modifier and TypeField and Description
private static final int
A

private static final int
B

private byte[]
private BigInteger
private static final int
F

private BigInteger
private static final int
G

private int
private BigInteger
private static final int
P

private BigInteger
private byte[]
private static final int
R

private BigInteger
private ASN1ObjectIdentifier
private static final int
Y

Constructor Summary

AccessConstructor and Description
pack-priv
public
public
ECDSAPublicKey(ASN1ObjectIdentifier usage, BigInteger p, BigInteger a, BigInteger b, byte[] basePoint, BigInteger order, byte[] publicPoint, int cofactor)

Method Summary

Modifier and TypeMethod and Description
public ASN1EncodableVector
getASN1EncodableVector(ASN1ObjectIdentifier oid, boolean publicPointOnly)

public byte[]
public BigInteger
public BigInteger
public BigInteger
public BigInteger
public byte[]
public BigInteger
public ASN1ObjectIdentifier
public boolean
private void
private void
private void
private void
setOrderOfBasePointR(BigInteger orderOfBasePointR)

private void
private void
private void
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Inherited from org.bouncycastle.asn1.eac.PublicKeyDataObject:
getInstance

Field Detail

Aback to summary
private static final int A
Bback to summary
private static final int B
basePointGback to summary
private byte[] basePointG
cofactorFback to summary
private BigInteger cofactorF
Fback to summary
private static final int F
firstCoefAback to summary
private BigInteger firstCoefA
Gback to summary
private static final int G
optionsback to summary
private int options
orderOfBasePointRback to summary
private BigInteger orderOfBasePointR
Pback to summary
private static final int P
primeModulusPback to summary
private BigInteger primeModulusP
publicPointYback to summary
private byte[] publicPointY
Rback to summary
private static final int R
secondCoefBback to summary
private BigInteger secondCoefB
usageback to summary
private ASN1ObjectIdentifier usage
Yback to summary
private static final int Y

Constructor Detail

ECDSAPublicKeyback to summary
pack-priv ECDSAPublicKey(ASN1Sequence seq) throws IllegalArgumentException
ECDSAPublicKeyback to summary
public ECDSAPublicKey(ASN1ObjectIdentifier usage, byte[] ppY) throws IllegalArgumentException
ECDSAPublicKeyback to summary
public ECDSAPublicKey(ASN1ObjectIdentifier usage, BigInteger p, BigInteger a, BigInteger b, byte[] basePoint, BigInteger order, byte[] publicPoint, int cofactor)

Method Detail

getASN1EncodableVectorback to summary
public ASN1EncodableVector getASN1EncodableVector(ASN1ObjectIdentifier oid, boolean publicPointOnly)
getBasePointGback to summary
public byte[] getBasePointG()
getCofactorFback to summary
public BigInteger getCofactorF()
getFirstCoefAback to summary
public BigInteger getFirstCoefA()
getOrderOfBasePointRback to summary
public BigInteger getOrderOfBasePointR()
getPrimeModulusPback to summary
public BigInteger getPrimeModulusP()
getPublicPointYback to summary
public byte[] getPublicPointY()
getSecondCoefBback to summary
public BigInteger getSecondCoefB()
getUsageback to summary
public ASN1ObjectIdentifier getUsage()

Implements abstract org.bouncycastle.asn1.eac.PublicKeyDataObject.getUsage.

hasParametersback to summary
public boolean hasParameters()
setBasePointGback to summary
private void setBasePointG(ASN1OctetString basePointG) throws IllegalArgumentException
setCofactorFback to summary
private void setCofactorF(BigInteger cofactorF) throws IllegalArgumentException
setFirstCoefAback to summary
private void setFirstCoefA(BigInteger firstCoefA) throws IllegalArgumentException
setOrderOfBasePointRback to summary
private void setOrderOfBasePointR(BigInteger orderOfBasePointR) throws IllegalArgumentException
setPrimeModulusPback to summary
private void setPrimeModulusP(BigInteger primeModulusP)
setPublicPointYback to summary
private void setPublicPointY(ASN1OctetString publicPointY) throws IllegalArgumentException
setSecondCoefBback to summary
private void setSecondCoefB(BigInteger secondCoefB) throws IllegalArgumentException
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.