Package com.nimbusds.jose.crypto.impl
Class AlgorithmSupportMessage
- java.lang.Object
-
- com.nimbusds.jose.crypto.impl.AlgorithmSupportMessage
-
public class AlgorithmSupportMessage extends java.lang.ObjectAlgorithm support messages, intended for JOSE exceptions.- Version:
- 2015-05-20
- Author:
- Vladimir Dzhuvinov
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringunsupportedEllipticCurve(Curve unsupported, java.util.Collection<Curve> supported)Returns a message that the specified elliptic curve is not supported.static java.lang.StringunsupportedEncryptionMethod(EncryptionMethod unsupported, java.util.Collection<EncryptionMethod> supported)Returns a message that the specified JWE encryption method is not supported.static java.lang.StringunsupportedJWEAlgorithm(JWEAlgorithm unsupported, java.util.Collection<JWEAlgorithm> supported)Returns a message that the specified JWE algorithm is not supported.static java.lang.StringunsupportedJWSAlgorithm(JWSAlgorithm unsupported, java.util.Collection<JWSAlgorithm> supported)Returns a message that the specified JWS algorithm is not supported.
-
-
-
Method Detail
-
unsupportedJWSAlgorithm
public static java.lang.String unsupportedJWSAlgorithm(JWSAlgorithm unsupported, java.util.Collection<JWSAlgorithm> supported)
Returns a message that the specified JWS algorithm is not supported.- Parameters:
unsupported- The unsupported JWS algorithm. Must not benull.supported- The supported JWS algorithms. Must not benull.- Returns:
- The message.
-
unsupportedJWEAlgorithm
public static java.lang.String unsupportedJWEAlgorithm(JWEAlgorithm unsupported, java.util.Collection<JWEAlgorithm> supported)
Returns a message that the specified JWE algorithm is not supported.- Parameters:
unsupported- The unsupported JWE algorithm. Must not benull.supported- The supported JWE algorithms. Must not benull.- Returns:
- The message.
-
unsupportedEncryptionMethod
public static java.lang.String unsupportedEncryptionMethod(EncryptionMethod unsupported, java.util.Collection<EncryptionMethod> supported)
Returns a message that the specified JWE encryption method is not supported.- Parameters:
unsupported- The unsupported JWE encryption method. Must not benull.supported- The supported JWE encryption methods. Must not benull.- Returns:
- The message.
-
unsupportedEllipticCurve
public static java.lang.String unsupportedEllipticCurve(Curve unsupported, java.util.Collection<Curve> supported)
Returns a message that the specified elliptic curve is not supported.- Parameters:
unsupported- The unsupported elliptic curve. Must not benull.supported- The supported elliptic curves. Must not benull.- Returns:
- The message.
-
-