Package com.nimbusds.jose.crypto.impl
Class JWEHeaderValidation
- java.lang.Object
-
- com.nimbusds.jose.crypto.impl.JWEHeaderValidation
-
public class JWEHeaderValidation extends Object
JWE header validation.- Version:
- 2023-09-10
- Author:
- Vladimir Dzhuvinov
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JWEAlgorithm
getAlgorithmAndEnsureNotNull(JWEHeader jweHeader)
Gets the JWE algorithm of the specified header and ensure it is notnull
.
-
-
-
Method Detail
-
getAlgorithmAndEnsureNotNull
public static JWEAlgorithm getAlgorithmAndEnsureNotNull(JWEHeader jweHeader) throws JOSEException
Gets the JWE algorithm of the specified header and ensure it is notnull
.- Parameters:
jweHeader
- The JWE header. Must not benull
.- Returns:
- The JWE algorithm.
- Throws:
JOSEException
- If the JWEalg
header parameter isnull
.
-
-