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

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

import org.bouncycastle.asn1.ASN1OctetString;

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