io.gatling.recorder.internal.bouncycastle.oer.its.ieee1609dot2.basetypes.BitmapSsp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gatling-recorder-bc-shaded Show documentation
Show all versions of gatling-recorder-bc-shaded Show documentation
Shaded BouncyCastle for Gatling Recorder
package io.gatling.recorder.internal.bouncycastle.oer.its.ieee1609dot2.basetypes;
import io.gatling.recorder.internal.bouncycastle.asn1.ASN1Object;
import io.gatling.recorder.internal.bouncycastle.asn1.ASN1Primitive;
import io.gatling.recorder.internal.bouncycastle.asn1.DEROctetString;
import io.gatling.recorder.internal.bouncycastle.util.Arrays;
public class BitmapSsp
extends ASN1Object
{
private final DEROctetString string;
public BitmapSsp(byte[] string)
{
this.string = new DEROctetString(Arrays.clone(string));
}
public BitmapSsp(DEROctetString string)
{
this.string = string;
}
public static BitmapSsp getInstance(Object o)
{
if (o instanceof BitmapSsp)
{
return (BitmapSsp)o;
}
if (o != null)
{
return new BitmapSsp(DEROctetString.getInstance(o).getOctets());
}
return null;
}
public DEROctetString getString()
{
return string;
}
public ASN1Primitive toASN1Primitive()
{
return string;
}
}