Package com.nimbusds.jose.crypto.impl
Class JWEHeaderValidation
java.lang.Object
com.nimbusds.jose.crypto.impl.JWEHeaderValidation
JWE header validation.
- Version:
- 2023-09-10
- Author:
- Vladimir Dzhuvinov
-
Method Summary
Modifier and TypeMethodDescriptionstatic JWEAlgorithm
getAlgorithmAndEnsureNotNull
(JWEHeader jweHeader) Gets the JWE algorithm of the specified header and ensure it is notnull
.
-
Method Details
-
getAlgorithmAndEnsureNotNull
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
.
-