org.bouncycastle.oer.its.SequenceOfRectangularRegion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcutil-jdk15on Show documentation
Show all versions of bcutil-jdk15on Show documentation
The Bouncy Castle Java APIs for ASN.1 extension and utility APIs used to support bcpkix and bctls. This jar contains APIs for JDK 1.5 and up.
The newest version!
package org.bouncycastle.oer.its;
import java.util.Collections;
import java.util.List;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
/**
*
* SequenceOfRectangularRegion ::= SEQUENCE OF RectangularRegion
*
*/
public class SequenceOfRectangularRegion
extends ASN1Object
{
private final List rectangularRegions;
public SequenceOfRectangularRegion(List items)
{
rectangularRegions = Collections.unmodifiableList(items);
}
public static SequenceOfRectangularRegion getInstance(Object o)
{
if (o instanceof SequenceOfRectangularRegion)
{
return (SequenceOfRectangularRegion)o;
}
return new SequenceOfRectangularRegion(Utils.fillList(RectangularRegion.class, ASN1Sequence.getInstance(o)));
}
public List getRectangularRegions()
{
return rectangularRegions;
}
public ASN1Primitive toASN1Primitive()
{
return Utils.toSequence(rectangularRegions);
}
}