All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.gatling.recorder.internal.bouncycastle.oer.its.ieee1609dot2.basetypes.HashedId32 Maven / Gradle / Ivy

package io.gatling.recorder.internal.bouncycastle.oer.its.ieee1609dot2.basetypes;

import io.gatling.recorder.internal.bouncycastle.asn1.ASN1OctetString;

public class HashedId32
    extends HashedId
{

    public HashedId32(byte[] string)
    {
        super(string);
        if (string.length != 32)
        {
            throw new IllegalArgumentException("hash id not 32 bytes");
        }
    }

    public static HashedId32 getInstance(Object src)
    {
        if (src instanceof HashedId32)
        {
            return (HashedId32)src;
        }
        if (src != null)
        {
            byte[] octetString = ASN1OctetString.getInstance(src).getOctets();
            return new HashedId32(octetString);
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy