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

package org.bouncycastle.oer.its.ieee1609dot2;

import org.bouncycastle.asn1.ASN1OctetString;
import org.bouncycastle.oer.its.ieee1609dot2.basetypes.HashedId;
import org.bouncycastle.oer.its.ieee1609dot2.basetypes.HashedId8;

public class PreSharedKeyRecipientInfo extends HashedId8
{
    public PreSharedKeyRecipientInfo(final byte[] array) {
        super(array);
    }
    
    public static PreSharedKeyRecipientInfo getInstance(final Object o) {
        if (o instanceof PreSharedKeyRecipientInfo) {
            return (PreSharedKeyRecipientInfo)o;
        }
        if (o == null) {
            return null;
        }
        if (o instanceof HashedId) {
            return new PreSharedKeyRecipientInfo(((HashedId)o).getHashBytes());
        }
        return new PreSharedKeyRecipientInfo(ASN1OctetString.getInstance(o).getOctets());
    }
}
