this.value = value;
if (obj == null || obj instanceof ResponderID) { return (ResponderID)obj; } else if (obj instanceof DEROctetString) { return new ResponderID((DEROctetString)obj); } else if (obj instanceof ASN1TaggedObject) { ASN1TaggedObject o = (ASN1TaggedObject)obj; if (o.getTagNo() == 1) { return new ResponderID(X509Name.getInstance(o, true)); } else { return new ResponderID(ASN1OctetString.getInstance(o, true)); } } return new ResponderID(X509Name.getInstance(obj));
return getInstance(obj.getObject()); // must be explicitly tagged
Produce an object suitable for an ASN1OutputStream. ResponderID ::= CHOICE { byName [1] Name, byKey [2] KeyHash } if (value instanceof ASN1OctetString) { return new DERTaggedObject(true, 2, value); } return new DERTaggedObject(true, 1, value);
ResponderID ::= CHOICE { byName [1] Name, byKey [2] KeyHash }
if (value instanceof ASN1OctetString) { return new DERTaggedObject(true, 2, value); } return new DERTaggedObject(true, 1, value);