Package org.keycloak.jose.jwe
Class JWE
java.lang.Object
org.keycloak.jose.jwe.JWE
- All Implemented Interfaces:
 JOSE
- Author:
 - Marek Posolda
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncontent(byte[] content) encodeJwe(JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider) byte[]byte[]byte[]Returns the JWT header.byte[]voidsetEncryptedContentInfo(byte[] initializationVector, byte[] encryptedContent, byte[] authenticationTag) verifyAndDecodeJwe(String jweStr) verifyAndDecodeJwe(String jweStr, JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider)  
- 
Constructor Details
- 
JWE
public JWE() - 
JWE
 
 - 
 - 
Method Details
- 
header
 - 
getHeader
Description copied from interface:JOSEReturns the JWT header. - 
getBase64Header
- Throws:
 IOException
 - 
getKeyStorage
 - 
getInitializationVector
public byte[] getInitializationVector() - 
content
 - 
getContent
public byte[] getContent() - 
getEncryptedContent
public byte[] getEncryptedContent() - 
getAuthenticationTag
public byte[] getAuthenticationTag() - 
setEncryptedContentInfo
public void setEncryptedContentInfo(byte[] initializationVector, byte[] encryptedContent, byte[] authenticationTag)  - 
encodeJwe
- Throws:
 JWEException
 - 
encodeJwe
public String encodeJwe(JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider) throws JWEException - Throws:
 JWEException
 - 
verifyAndDecodeJwe
- Throws:
 JWEException
 - 
verifyAndDecodeJwe
public JWE verifyAndDecodeJwe(String jweStr, JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider) throws JWEException - Throws:
 JWEException
 - 
verifyAndDecodeJwe
- Throws:
 JWEException
 
 -