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

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

import org.bouncycastle.asn1.ASN1OctetString;

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