예제 #1
0
  public AccessDescription(ASN1Sequence seq) {
    if (seq.size() != 2) {
      throw new IllegalArgumentException("wrong number of elements in sequence");
    }

    accessMethod = DERObjectIdentifier.getInstance(seq.getObjectAt(0));
    accessLocation = GeneralName.getInstance(seq.getObjectAt(1));
  }
예제 #2
0
  public AttributeTypeAndValue[] getRegInfo() {
    if (regInfo == null) {
      return null;
    }

    AttributeTypeAndValue[] results = new AttributeTypeAndValue[regInfo.size()];

    for (int i = 0; i != results.length; i++) {
      results[i] = AttributeTypeAndValue.getInstance(regInfo.getObjectAt(i));
    }

    return results;
  }