public interface JWEHeader extends JWSHeader
Supports all headers of the JWE specification:
The header may also include header
parameters
; these will be serialised and parsed along the registered ones.
Example header:
{ "alg" : "RSA1_5", "enc" : "A128CBC-HS256" }
JWSHeader
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAgreementPartyUInfo()
Gets the agreement PartyUInfo (
apu ) parameter. |
java.lang.String |
getAgreementPartyVInfo()
Returns the agreement PartyVInfo (
apv ) parameter. |
java.lang.String |
getAuthTag()
Returns the authentication tag (
tag ) parameter. |
java.lang.String |
getCompressionAlgorithm()
Returns the compression algorithm (
zip ) parameter. |
java.lang.String |
getEncryptionMethod()
Returns the encryption method
|
java.lang.String |
getIV()
Returns the initialization vector (
iv ) parameter. |
int |
getPBES2Count()
Returns the PBES2 count (
p2c ) parameter. |
java.lang.String |
getPBES2Salt()
Returns the PBES2 salt (
p2s ) parameter. |
getAlgorithm, getContentType, getHeader, getJWKURL, getKId, getX509CertSHA256Thumbprint, getX509CertURL, toJSONString
java.lang.String getEncryptionMethod() throws com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
- thrown if the header is invalidjava.lang.String getAgreementPartyUInfo() throws com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
apu
) parameter.null
if not specified.com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
- thrown if the header is invalidjava.lang.String getCompressionAlgorithm() throws com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
zip
) parameter.null
if not
specified.com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
- thrown if the header is invalidjava.lang.String getAgreementPartyVInfo() throws com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
apv
) parameter.null
if not
specified.com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
- thrown if the header is invalidjava.lang.String getPBES2Salt() throws com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
p2s
) parameter.null
if not specified.com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
- thrown if the header is invalidint getPBES2Count() throws com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
p2c
) parameter.com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
- thrown if the header is invalidjava.lang.String getIV() throws com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
iv
) parameter.null
if not specified.com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
- thrown if the header is invalidjava.lang.String getAuthTag() throws com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
tag
) parameter.null
if not specified.com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
- thrown if the header is invalid