Top Inners Fields Constructors Methods
org.keycloak.jose.jwe

public Class JWEKeyStorage

extends Object
Class Inheritance
Imports
java.security.Key, java.util.HashMap, .Map, org.keycloak.jose.jwe.enc.JWEEncryptionProvider

Author
Marek Posolda

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private byte[]
private Map<JWEKeyStorage.KeyUse, Key>
private Key
private Key
private JWEEncryptionProvider

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
public byte[]
public Key
getCEKKey(JWEKeyStorage.KeyUse keyUse, boolean generateIfNotPresent)

public Key
public Key
public void
setCEKBytes(byte[] cekBytes)

public JWEKeyStorage
public JWEKeyStorage
setDecryptionKey(Key decryptionKey)

public JWEKeyStorage
setEncryptionKey(Key encryptionKey)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cekBytesback to summary
private byte[] cekBytes
decodedCEKback to summary
private Map<JWEKeyStorage.KeyUse, Key> decodedCEK
decryptionKeyback to summary
private Key decryptionKey
encryptionKeyback to summary
private Key encryptionKey
encryptionProviderback to summary
private JWEEncryptionProvider encryptionProvider

Constructor Detail

JWEKeyStorageback to summary
public JWEKeyStorage()

Method Detail

generateCekBytesback to summary
private void generateCekBytes()
getCekBytesback to summary
public byte[] getCekBytes()
getCEKKeyback to summary
public Key getCEKKey(JWEKeyStorage.KeyUse keyUse, boolean generateIfNotPresent)
getDecryptionKeyback to summary
public Key getDecryptionKey()
getEncryptionKeyback to summary
public Key getEncryptionKey()
setCEKBytesback to summary
public void setCEKBytes(byte[] cekBytes)
setCEKKeyback to summary
public JWEKeyStorage setCEKKey(Key key, JWEKeyStorage.KeyUse keyUse)
setDecryptionKeyback to summary
public JWEKeyStorage setDecryptionKey(Key decryptionKey)
setEncryptionKeyback to summary
public JWEKeyStorage setEncryptionKey(Key encryptionKey)
setEncryptionProviderback to summary
public void setEncryptionProvider(JWEEncryptionProvider encryptionProvider)
org.keycloak.jose.jwe back to summary

public final Enum JWEKeyStorage.KeyUse

extends Enum<JWEKeyStorage.KeyUse>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final JWEKeyStorage.KeyUse
public static final JWEKeyStorage.KeyUse

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static JWEKeyStorage.KeyUse
public static JWEKeyStorage.KeyUse[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ENCRYPTIONback to summary
public static final JWEKeyStorage.KeyUse ENCRYPTION
SIGNATUREback to summary
public static final JWEKeyStorage.KeyUse SIGNATURE

Constructor Detail

KeyUseback to summary
private KeyUse()

Method Detail

valueOfback to summary
public static JWEKeyStorage.KeyUse valueOf(String name)
valuesback to summary
public static JWEKeyStorage.KeyUse[] values()