/** * Creates an instance of a TargetInformation from the given object. * <p> * <code>obj</code> can be a TargetInformation or a {@link ASN1Sequence} * * @param obj The object. * @return A TargetInformation instance. * @throws IllegalArgumentException if the given object cannot be * interpreted as TargetInformation. */ public static TargetInformation getInstance(Object obj) { if (obj instanceof TargetInformation) { return (TargetInformation)obj; } else if (obj != null) { return new TargetInformation(ASN1Sequence.getInstance(obj)); } return null; }
/** * Creates an instance of a TargetInformation from the given object. * <p> * <code>obj</code> can be a TargetInformation or a {@link ASN1Sequence} * * @param obj The object. * @return A TargetInformation instance. * @throws IllegalArgumentException if the given object cannot be * interpreted as TargetInformation. */ public static TargetInformation getInstance(Object obj) { if (obj instanceof TargetInformation) { return (TargetInformation)obj; } else if (obj != null) { return new TargetInformation(ASN1Sequence.getInstance(obj)); } return null; }