Package com.nimbusds.jose.jwk
Class JWKException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.nimbusds.jose.JOSEException
-
- com.nimbusds.jose.KeyException
-
- com.nimbusds.jose.jwk.JWKException
-
- All Implemented Interfaces:
Serializable
public class JWKException extends KeyException
JSON Web Key (JWK) related exception.- Author:
- jricher
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JWKException(String message)
Creates a new JWK with the specified message.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JWKException
expectedClass(Class<? extends JWK> expectedJWKClass)
Creates a new JWK type exception.static JWKException
expectedPrivate()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JWKException
public JWKException(String message)
Creates a new JWK with the specified message.- Parameters:
message
- The exception message.
-
-
Method Detail
-
expectedClass
public static JWKException expectedClass(Class<? extends JWK> expectedJWKClass)
Creates a new JWK type exception.- Parameters:
expectedJWKClass
- The expected JWK class. Should not benull
.
-
expectedPrivate
public static JWKException expectedPrivate()
-
-