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

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

import org.bouncycastle.asn1.ASN1OctetString;

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