Package com.nimbusds.jose
Class KeyTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.nimbusds.jose.JOSEException
-
- com.nimbusds.jose.KeyException
-
- com.nimbusds.jose.KeyTypeException
-
- All Implemented Interfaces:
Serializable
public class KeyTypeException extends KeyException
Key type exception.- Version:
- 2020-03-03
- Author:
- Vladimir Dzhuvinov, stisve
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeyTypeException(Class<? extends Key> expectedKeyClass)
Creates a new key type exception.KeyTypeException(Class<? extends Key> expectedKeyInterface, Class<?>... additionalInterfaces)
Creates a new key type exception.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
KeyTypeException
public KeyTypeException(Class<? extends Key> expectedKeyClass)
Creates a new key type exception.- Parameters:
expectedKeyClass
- The expected key class. Should not benull
.
-
KeyTypeException
public KeyTypeException(Class<? extends Key> expectedKeyInterface, Class<?>... additionalInterfaces)
Creates a new key type exception.- Parameters:
expectedKeyInterface
- The expected key interfaces. Should not benull
.additionalInterfaces
- Additional interfaces the key is required to implement.
-
-