org.bouncycastle.asn1.esf.CompleteRevocationRefs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bc-fips Show documentation
Show all versions of bc-fips Show documentation
The FIPS 140-3 Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms certified to FIPS 140-3 level 1. This jar contains JCE provider and low-level API for the BC-FJA version 2.0.0, FIPS Certificate #4743. Please see certificate for certified platform details.
/***************************************************************/
/****** DO NOT EDIT THIS CLASS bc-java SOURCE FILE ******/
/***************************************************************/
package org.bouncycastle.asn1.esf;
import java.util.Enumeration;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.DERSequence;
/**
*
* CompleteRevocationRefs ::= SEQUENCE OF CrlOcspRef
*
*/
public class CompleteRevocationRefs
extends ASN1Object
{
private ASN1Sequence crlOcspRefs;
public static CompleteRevocationRefs getInstance(Object obj)
{
if (obj instanceof CompleteRevocationRefs)
{
return (CompleteRevocationRefs)obj;
}
else if (obj != null)
{
return new CompleteRevocationRefs(ASN1Sequence.getInstance(obj));
}
return null;
}
private CompleteRevocationRefs(ASN1Sequence seq)
{
Enumeration seqEnum = seq.getObjects();
while (seqEnum.hasMoreElements())
{
CrlOcspRef.getInstance(seqEnum.nextElement());
}
this.crlOcspRefs = seq;
}
public CompleteRevocationRefs(CrlOcspRef[] crlOcspRefs)
{
this.crlOcspRefs = new DERSequence(crlOcspRefs);
}
public CrlOcspRef[] getCrlOcspRefs()
{
CrlOcspRef[] result = new CrlOcspRef[this.crlOcspRefs.size()];
for (int idx = 0; idx < result.length; idx++)
{
result[idx] = CrlOcspRef.getInstance(this.crlOcspRefs
.getObjectAt(idx));
}
return result;
}
public ASN1Primitive toASN1Primitive()
{
return this.crlOcspRefs;
}
}