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

package com.nimbusds.jose;

import java.util.Arrays;
import java.security.Key;

public class KeyTypeException extends KeyException
{
    public KeyTypeException(final Class<? extends Key> expectedKeyClass) {
        super("Invalid key: Must be an instance of " + expectedKeyClass);
    }
    
    public KeyTypeException(final Class<? extends Key> expectedKeyInterface, final Class<?>... additionalInterfaces) {
        super("Invalid key: Must be an instance of " + expectedKeyInterface + " and implement all of the following interfaces " + Arrays.toString(additionalInterfaces));
    }
}
