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:
java.io.Serializable
public class JWKException extends KeyException
JSON Web Key (JWK) related exception.- Author:
- jricher
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JWKException(java.lang.String message)Creates a new JWK with the specified message.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JWKExceptionexpectedClass(java.lang.Class<? extends JWK> expectedJWKClass)Creates a new JWK type exception.static JWKExceptionexpectedPrivate()
-
-
-
Method Detail
-
expectedClass
public static JWKException expectedClass(java.lang.Class<? extends JWK> expectedJWKClass)
Creates a new JWK type exception.- Parameters:
expectedJWKClass- The expected JWK class. Should not benull.
-
expectedPrivate
public static JWKException expectedPrivate()
-
-