// 
// Decompiled by Procyon v0.6.0
// 

package org.bouncycastle.oer.its.ieee1609dot2.basetypes;

import org.bouncycastle.asn1.ASN1OctetString;

public class HashedId3 extends HashedId
{
    public HashedId3(final byte[] array) {
        super(array);
        if (array.length != 3) {
            throw new IllegalArgumentException("hash id not 3 bytes");
        }
    }
    
    public static HashedId3 getInstance(final Object o) {
        if (o instanceof HashedId3) {
            return (HashedId3)o;
        }
        if (o != null) {
            return new HashedId3(ASN1OctetString.getInstance(o).getOctets());
        }
        return null;
    }
}
