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
JSON Web Key (JWK) related exception.
- Author:
- jricher
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JWKException
expectedClass
(Class<? extends JWK> expectedJWKClass) Creates a new JWK type exception.static JWKException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JWKException
Creates a new JWK with the specified message.- Parameters:
message
- The exception message.
-
-
Method Details
-
expectedClass
Creates a new JWK type exception.- Parameters:
expectedJWKClass
- The expected JWK class. Should not benull
.
-
expectedPrivate
-