Top Fields Constructors Methods
org.keycloak.jose.jwe

public Class JWE

extends Object
implements JOSE
Class Inheritance
All Implemented Interfaces
org.keycloak.jose.JOSE
Imports
org.keycloak.common.util.Base64Url, org.keycloak.jose.JOSE, .JOSEHeader, org.keycloak.jose.jwe.alg.JWEAlgorithmProvider, org.keycloak.jose.jwe.enc.JWEEncryptionProvider, org.keycloak.util.JsonSerialization, java.io.IOException

Author
Marek Posolda

Field Summary

Modifier and TypeField and Description
private byte[]
private String
private String
private byte[]
private byte[]
private JWEHeader
private byte[]
private JWEKeyStorage

Constructor Summary

AccessConstructor and Description
public
JWE()

public
JWE(String jwt)

Method Summary

Modifier and TypeMethod and Description
public JWE
content(byte[] content)

public String
public String
encodeJwe(JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider)

public byte[]
public String
public byte[]
private String
public byte[]
public JOSEHeader
getHeader()

Implements org.keycloak.jose.JOSE.getHeader.

Returns the JWT header.
public byte[]
public JWEKeyStorage
private JWE
getProcessedJWE(JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider)

public JWE
header(JWEHeader header)

public void
setEncryptedContentInfo(byte[] initializationVector, byte[] encryptedContent, byte[] authenticationTag)

private void
public JWE
public JWE
verifyAndDecodeJwe(String jweStr, JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider)

public JWE
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

authenticationTagback to summary
private byte[] authenticationTag
base64Cekback to summary
private String base64Cek
base64Headerback to summary
private String base64Header
contentback to summary
private byte[] content
encryptedContentback to summary
private byte[] encryptedContent
initializationVectorback to summary
private byte[] initializationVector
keyStorageback to summary
private JWEKeyStorage keyStorage

Constructor Detail

JWEback to summary
public JWE()
JWEback to summary
public JWE(String jwt)

Method Detail

contentback to summary
public JWE content(byte[] content)
encodeJweback to summary
public String encodeJwe() throws JWEException
encodeJweback to summary
public String encodeJwe(JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider) throws JWEException
getAuthenticationTagback to summary
public byte[] getAuthenticationTag()
getBase64Headerback to summary
public String getBase64Header() throws IOException
getContentback to summary
public byte[] getContent()
getEncodedJweStringback to summary
private String getEncodedJweString()
getEncryptedContentback to summary
public byte[] getEncryptedContent()
getHeaderback to summary
public JOSEHeader getHeader()

Implements org.keycloak.jose.JOSE.getHeader.

Doc from org.keycloak.jose.JOSE.getHeader.

Returns the JWT header.

Returns:JOSEHeader

the JWT header

getInitializationVectorback to summary
public byte[] getInitializationVector()
getKeyStorageback to summary
public JWEKeyStorage getKeyStorage()
getProcessedJWEback to summary
private JWE getProcessedJWE(JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider) throws Exception
headerback to summary
public JWE header(JWEHeader header)
setEncryptedContentInfoback to summary
public void setEncryptedContentInfo(byte[] initializationVector, byte[] encryptedContent, byte[] authenticationTag)
setupJWEHeaderback to summary
private void setupJWEHeader(String jweStr) throws IllegalStateException
verifyAndDecodeJweback to summary
public JWE verifyAndDecodeJwe(String jweStr) throws JWEException
verifyAndDecodeJweback to summary
public JWE verifyAndDecodeJwe(String jweStr, JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider) throws JWEException
verifyAndDecodeJweback to summary
public JWE verifyAndDecodeJwe() throws JWEException