io.gatling.recorder.internal.bouncycastle.oer.its.ieee1609dot2.basetypes.HashedId8 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.ASN1OctetString;
public class HashedId8
extends HashedId
{
public HashedId8(byte[] string)
{
super(string);
if (string.length != 8)
{
throw new IllegalArgumentException("hash id not 8 bytes");
}
}
public static HashedId8 getInstance(Object src)
{
if (src instanceof HashedId8)
{
return (HashedId8)src;
}
if (src != null)
{
byte[] octetString = ASN1OctetString.getInstance(src).getOctets();
return new HashedId8(octetString);
}
return null;
}
}