Methods Summary |
---|
public org.bouncycastle.asn1.ASN1Set | getCRLs()
return crls;
|
public org.bouncycastle.asn1.ASN1Set | getCertificates()
return certs;
|
public static org.bouncycastle.asn1.cms.OriginatorInfo | getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)return an OriginatorInfo object from a tagged object.
return getInstance(ASN1Sequence.getInstance(obj, explicit));
|
public static org.bouncycastle.asn1.cms.OriginatorInfo | getInstance(java.lang.Object obj)return an OriginatorInfo object from the given object.
if (obj == null || obj instanceof OriginatorInfo)
{
return (OriginatorInfo)obj;
}
if (obj instanceof ASN1Sequence)
{
return new OriginatorInfo((ASN1Sequence)obj);
}
throw new IllegalArgumentException("Invalid OriginatorInfo: " + obj.getClass().getName());
|
public org.bouncycastle.asn1.DERObject | toASN1Object()Produce an object suitable for an ASN1OutputStream.
OriginatorInfo ::= SEQUENCE {
certs [0] IMPLICIT CertificateSet OPTIONAL,
crls [1] IMPLICIT CertificateRevocationLists OPTIONAL
}
ASN1EncodableVector v = new ASN1EncodableVector();
if (certs != null)
{
v.add(new DERTaggedObject(false, 0, certs));
}
if (crls != null)
{
v.add(new DERTaggedObject(false, 1, crls));
}
return new DERSequence(v);
|