public static AttributeTypeAndValue getInstance(Object o) { if (o instanceof AttributeTypeAndValue) { return (AttributeTypeAndValue)o; } if (o != null) { return new AttributeTypeAndValue(ASN1Sequence.getInstance(o)); } return null; }
public static CmpUtf8Pairs extract(AttributeTypeAndValue[] atvs) { if (atvs != null) { for (AttributeTypeAndValue atv : atvs) { if (CMPObjectIdentifiers.regInfo_utf8Pairs.equals(atv.getType())) { String regInfoValue = ((ASN1String) atv.getValue()).getString(); return new CmpUtf8Pairs(regInfoValue); } } } return null; }
public AttributeTypeAndValue[] toAttributeTypeAndValueArray() { AttributeTypeAndValue[] result = new AttributeTypeAndValue[content.size()]; for (int i = 0; i != result.length; i++) { result[i] = AttributeTypeAndValue.getInstance(content.getObjectAt(i)); } return result; }
AttributeTypeAndValue atv = AttributeTypeAndValue.getInstance(seq.getObjectAt(j)); if (atv.getType().equals(CMPObjectIdentifiers.regCtrl_oldCertID)) { oldCertIdAtv = atv; break; CertId oldCertId = CertId.getInstance(oldCertIdAtv.getValue());
public static AttributeTypeAndValue getInstance(Object o) { if (o instanceof AttributeTypeAndValue) { return (AttributeTypeAndValue)o; } if (o != null) { return new AttributeTypeAndValue(ASN1Sequence.getInstance(o)); } return null; }
public static CmpUtf8Pairs extract(AttributeTypeAndValue[] atvs) { if (atvs != null) { for (AttributeTypeAndValue atv : atvs) { if (CMPObjectIdentifiers.regInfo_utf8Pairs.equals(atv.getType())) { String regInfoValue = ((ASN1String) atv.getValue()).getString(); return new CmpUtf8Pairs(regInfoValue); } } } return null; }
public AttributeTypeAndValue[] toAttributeTypeAndValueArray() { AttributeTypeAndValue[] result = new AttributeTypeAndValue[content.size()]; for (int i = 0; i != result.length; i++) { result[i] = AttributeTypeAndValue.getInstance(content.getObjectAt(i)); } return result; }
public static AttributeTypeAndValue buildAttributeTypeAndValue(CmpUtf8Pairs utf8Pairs) { Args.notNull(utf8Pairs, "utf8Pairs"); return new AttributeTypeAndValue(CMPObjectIdentifiers.regInfo_utf8Pairs, new DERUTF8String(utf8Pairs.encoded())); }
public static CmpUtf8Pairs extract(final AttributeTypeAndValue[] atvs) { if (atvs == null) { return null; } for (AttributeTypeAndValue atv : atvs) { if (CMPObjectIdentifiers.regInfo_utf8Pairs.equals(atv.getType())) { String regInfoValue = ((ASN1String) atv.getValue()).getString(); return new CmpUtf8Pairs(regInfoValue); } } return null; }
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; }
public static AttributeTypeAndValue buildAttributeTypeAndValue(CmpUtf8Pairs utf8Pairs) { ParamUtil.requireNonNull("utf8Pairs", utf8Pairs); return new AttributeTypeAndValue(CMPObjectIdentifiers.regInfo_utf8Pairs, new DERUTF8String(utf8Pairs.encoded())); }
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; }
public static AttributeTypeAndValue buildAttributeTypeAndValue(final CmpUtf8Pairs utf8Pairs) { ParamUtil.requireNonNull("utf8Pairs", utf8Pairs); return new AttributeTypeAndValue(CMPObjectIdentifiers.regInfo_utf8Pairs, new DERUTF8String(utf8Pairs.encoded())); }
CertId certId = new CertId(issuerGn, oldCertSerialNumbers[i]); Controls controls = new Controls( new AttributeTypeAndValue(CMPObjectIdentifiers.regCtrl_oldCertID, certId)); CertRequest certReq = new CertRequest(new ASN1Integer(certReqIds[i]), certTemplateBuilder.build(), controls); new AttributeTypeAndValue(CMPObjectIdentifiers.regInfo_utf8Pairs, new DERUTF8String(utf8pairs)); atvs = new AttributeTypeAndValue[]{certprofileInfo};
new AttributeTypeAndValue(CMPObjectIdentifiers.regInfo_utf8Pairs, new DERUTF8String(utf8pairs)); atvs = new AttributeTypeAndValue[]{certprofileInfo};
CertId certId = new CertId(issuerGn, oldCertSerialNumbers[i]); Controls controls = new Controls( new AttributeTypeAndValue(CMPObjectIdentifiers.regCtrl_oldCertID, certId)); CertRequest certReq = new CertRequest(new ASN1Integer(certReqIds[i]), certTemplateBuilder.build(), controls);
if (uri == null) { AttributeTypeAndValue certprofileInfo = new AttributeTypeAndValue(CMPObjectIdentifiers.regInfo_utf8Pairs, new DERUTF8String("certprofile?" + certprofiles[i] + "%")); atvs = new AttributeTypeAndValue[]{certprofileInfo};