Class 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
      }
     
    • Constructor Detail

      • ECDSAPublicKey

        public ECDSAPublicKey​(ASN1ObjectIdentifier usage,
                              byte[] ppY)
                       throws java.lang.IllegalArgumentException
        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)
    • Method Detail

      • 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()