@Override protected void getValues(Object object, Object[] values) { GeneralSubtree gs = (GeneralSubtree) object; values[0] = gs.base; values[1] = ASN1Integer.fromIntValue(gs.minimum); if (gs.maximum > -1) { values[2] = ASN1Integer.fromIntValue(gs.maximum); } }
/** * Returns ASN.1 encoded form of the object. * * @return a byte array containing ASN.1 encoded form. */ public byte[] getEncoded() { if (encoding == null) { encoding = ASN1Integer.getInstance().encode(ASN1Integer.fromIntValue(skipCerts)); } return encoding; }