public static ExtensionExistence getInstance(final Object obj) { if (obj == null || obj instanceof ExtensionExistence) { return (ExtensionExistence) obj; } if (obj instanceof ASN1Sequence) { return new ExtensionExistence((ASN1Sequence) obj); } if (obj instanceof byte[]) { try { return getInstance(ASN1Primitive.fromByteArray((byte[]) obj)); } catch (IOException ex) { throw new IllegalArgumentException("unable to parse encoded general name"); } } throw new IllegalArgumentException("unknown object in getInstance: " + obj.getClass().getName()); }
public static ExtensionExistence getInstance(Object obj) { if (obj == null || obj instanceof ExtensionExistence) { return (ExtensionExistence) obj; } if (obj instanceof ASN1Sequence) { return new ExtensionExistence((ASN1Sequence) obj); } if (obj instanceof byte[]) { try { return getInstance(ASN1Primitive.fromByteArray((byte[]) obj)); } catch (IOException ex) { throw new IllegalArgumentException("unable to parse encoded general name"); } } throw new IllegalArgumentException("unknown object in getInstance: " + obj.getClass().getName()); }
ObjectIdentifiers.id_xipki_ext_cmpRequestExtensions); if (reqExtension != null) { ExtensionExistence ee = ExtensionExistence.getInstance( reqExtension.getParsedValue()); types.addAll(ee.needExtensions());
ObjectIdentifiers.id_xipki_ext_cmpRequestExtensions); if (reqExtension != null) { ExtensionExistence ee = ExtensionExistence.getInstance(reqExtension.getParsedValue()); neededExtTypes.addAll(ee.getNeedExtensions()); wantedExtTypes.addAll(ee.getWantExtensions());