public class ECDSAPublicKey extends PublicKeyDataObject
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 }
Modifier and Type | Field and Description |
---|---|
private static int |
A |
private static int |
B |
private byte[] |
basePointG |
private BigInteger |
cofactorF |
private static int |
F |
private BigInteger |
firstCoefA |
private static int |
G |
private int |
options |
private BigInteger |
orderOfBasePointR |
private static int |
P |
private BigInteger |
primeModulusP |
private byte[] |
publicPointY |
private static int |
R |
private BigInteger |
secondCoefB |
private ASN1ObjectIdentifier |
usage |
private static int |
Y |
Constructor and Description |
---|
ECDSAPublicKey(ASN1ObjectIdentifier usage,
BigInteger p,
BigInteger a,
BigInteger b,
byte[] basePoint,
BigInteger order,
byte[] publicPoint,
int cofactor) |
ECDSAPublicKey(ASN1ObjectIdentifier usage,
byte[] ppY) |
ECDSAPublicKey(ASN1Sequence seq) |
Modifier and Type | Method and Description |
---|---|
ASN1EncodableVector |
getASN1EncodableVector(ASN1ObjectIdentifier oid,
boolean publicPointOnly) |
byte[] |
getBasePointG() |
BigInteger |
getCofactorF() |
BigInteger |
getFirstCoefA() |
BigInteger |
getOrderOfBasePointR() |
BigInteger |
getPrimeModulusP() |
byte[] |
getPublicPointY() |
BigInteger |
getSecondCoefB() |
ASN1ObjectIdentifier |
getUsage() |
boolean |
hasParameters() |
private void |
setBasePointG(ASN1OctetString basePointG) |
private void |
setCofactorF(BigInteger cofactorF) |
private void |
setFirstCoefA(BigInteger firstCoefA) |
private void |
setOrderOfBasePointR(BigInteger orderOfBasePointR) |
private void |
setPrimeModulusP(BigInteger primeModulusP) |
private void |
setPublicPointY(ASN1OctetString publicPointY) |
private void |
setSecondCoefB(BigInteger secondCoefB) |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
getInstance
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
private ASN1ObjectIdentifier usage
private BigInteger primeModulusP
private BigInteger firstCoefA
private BigInteger secondCoefB
private byte[] basePointG
private BigInteger orderOfBasePointR
private byte[] publicPointY
private BigInteger cofactorF
private int options
private static final int P
private static final int A
private static final int B
private static final int G
private static final int R
private static final int Y
private static final int F
ECDSAPublicKey(ASN1Sequence seq) throws IllegalArgumentException
IllegalArgumentException
public ECDSAPublicKey(ASN1ObjectIdentifier usage, byte[] ppY) throws IllegalArgumentException
IllegalArgumentException
public ECDSAPublicKey(ASN1ObjectIdentifier usage, BigInteger p, BigInteger a, BigInteger b, byte[] basePoint, BigInteger order, byte[] publicPoint, int cofactor)
public ASN1ObjectIdentifier getUsage()
getUsage
in class PublicKeyDataObject
public byte[] getBasePointG()
private void setBasePointG(ASN1OctetString basePointG) throws IllegalArgumentException
IllegalArgumentException
public BigInteger getCofactorF()
private void setCofactorF(BigInteger cofactorF) throws IllegalArgumentException
IllegalArgumentException
public BigInteger getFirstCoefA()
private void setFirstCoefA(BigInteger firstCoefA) throws IllegalArgumentException
IllegalArgumentException
public BigInteger getOrderOfBasePointR()
private void setOrderOfBasePointR(BigInteger orderOfBasePointR) throws IllegalArgumentException
IllegalArgumentException
public BigInteger getPrimeModulusP()
private void setPrimeModulusP(BigInteger primeModulusP)
public byte[] getPublicPointY()
private void setPublicPointY(ASN1OctetString publicPointY) throws IllegalArgumentException
IllegalArgumentException
public BigInteger getSecondCoefB()
private void setSecondCoefB(BigInteger secondCoefB) throws IllegalArgumentException
IllegalArgumentException
public boolean hasParameters()
public ASN1EncodableVector getASN1EncodableVector(ASN1ObjectIdentifier oid, boolean publicPointOnly)
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object