Ejemplo n.º 1
0
  private pkifreetext(asn1sequence seq) {
    enumeration e = seq.getobjects();
    while (e.hasmoreelements()) {
      if (!(e.nextelement() instanceof derutf8string)) {
        throw new illegalargumentexception("attempt to insert non utf8 string into pkifreetext");
      }
    }

    strings = seq;
  }
Ejemplo n.º 2
0
  private certreqmsg(asn1sequence seq) {
    enumeration en = seq.getobjects();

    certreq = certrequest.getinstance(en.nextelement());
    while (en.hasmoreelements()) {
      object o = en.nextelement();

      if (o instanceof asn1taggedobject || o instanceof proofofpossession) {
        pop = proofofpossession.getinstance(o);
      } else {
        reginfo = asn1sequence.getinstance(o);
      }
    }
  }