Package org.keycloak.jose.jwe
Class JWE
- java.lang.Object
- 
- org.keycloak.jose.jwe.JWE
 
- 
- All Implemented Interfaces:
- JOSE
 
 public class JWE extends Object implements JOSE - Author:
- Marek Posolda
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description JWEcontent(byte[] content)StringencodeJwe()StringencodeJwe(JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider)byte[]getAuthenticationTag()StringgetBase64Header()byte[]getContent()byte[]getEncryptedContent()JOSEHeadergetHeader()Returns the JWT header.byte[]getInitializationVector()JWEKeyStoragegetKeyStorage()JWEheader(JWEHeader header)voidsetEncryptedContentInfo(byte[] initializationVector, byte[] encryptedContent, byte[] authenticationTag)JWEverifyAndDecodeJwe()JWEverifyAndDecodeJwe(String jweStr)JWEverifyAndDecodeJwe(String jweStr, JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider)
 
- 
- 
- 
Constructor Detail- 
JWEpublic JWE() 
 - 
JWEpublic JWE(String jwt) 
 
- 
 - 
Method Detail- 
getHeaderpublic JOSEHeader getHeader() Description copied from interface:JOSEReturns the JWT header.
 - 
getBase64Headerpublic String getBase64Header() throws IOException - Throws:
- IOException
 
 - 
getKeyStoragepublic JWEKeyStorage getKeyStorage() 
 - 
getInitializationVectorpublic byte[] getInitializationVector() 
 - 
contentpublic JWE content(byte[] content) 
 - 
getContentpublic byte[] getContent() 
 - 
getEncryptedContentpublic byte[] getEncryptedContent() 
 - 
getAuthenticationTagpublic byte[] getAuthenticationTag() 
 - 
setEncryptedContentInfopublic void setEncryptedContentInfo(byte[] initializationVector, byte[] encryptedContent, byte[] authenticationTag)
 - 
encodeJwepublic String encodeJwe() throws JWEException - Throws:
- JWEException
 
 - 
encodeJwepublic String encodeJwe(JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider) throws JWEException - Throws:
- JWEException
 
 - 
verifyAndDecodeJwepublic JWE verifyAndDecodeJwe(String jweStr) throws JWEException - Throws:
- JWEException
 
 - 
verifyAndDecodeJwepublic JWE verifyAndDecodeJwe(String jweStr, JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider) throws JWEException - Throws:
- JWEException
 
 - 
verifyAndDecodeJwepublic JWE verifyAndDecodeJwe() throws JWEException - Throws:
- JWEException
 
 
- 
 
-