|
keycloak
|


公開メンバ関数 | |
| void | encodeJwe (JWE jwe) throws Exception |
| void | verifyAndDecodeJwe (JWE jwe) throws Exception |
| byte [] | serializeCEK (JWEKeyStorage keyStorage) |
| void | deserializeCEK (JWEKeyStorage keyStorage) |
| int | getExpectedCEKLength () |
| void org.keycloak.jose.jwe.enc.JWEEncryptionProvider.deserializeCEK | ( | JWEKeyStorage | keyStorage | ) |
This method is supposed to deserialize keys. It requires that JWEKeyStorage#getCekBytes() is set. After keys are deserialized, this method needs to call JWEKeyStorage#setCEKKey(Key, JWEKeyStorage.KeyUse) according to all uses, which this encryption algorithm requires.
| keyStorage |
org.keycloak.jose.jwe.enc.AesCbcHmacShaEncryptionProviderで実装されています。
| void org.keycloak.jose.jwe.enc.JWEEncryptionProvider.encodeJwe | ( | JWE | jwe | ) | throws Exception |
This method usually has 3 outputs:
It is supposed to call JWE#setEncryptedContentInfo(byte[], byte[], byte[]) after it's finished
| jwe |
| IOException | |
| GeneralSecurityException |
org.keycloak.jose.jwe.enc.AesCbcHmacShaEncryptionProviderで実装されています。
| int org.keycloak.jose.jwe.enc.JWEEncryptionProvider.getExpectedCEKLength | ( | ) |
| byte [] org.keycloak.jose.jwe.enc.JWEEncryptionProvider.serializeCEK | ( | JWEKeyStorage | keyStorage | ) |
This method requires that decoded CEK keys are present in the keyStorage.decodedCEK map before it's called
| keyStorage |
org.keycloak.jose.jwe.enc.AesCbcHmacShaEncryptionProviderで実装されています。
| void org.keycloak.jose.jwe.enc.JWEEncryptionProvider.verifyAndDecodeJwe | ( | JWE | jwe | ) | throws Exception |
This method is supposed to verify checksums and decrypt content. Then it needs to call JWE#content(byte[]) after it's finished
| jwe |
| IOException | |
| GeneralSecurityException |
org.keycloak.jose.jwe.enc.AesCbcHmacShaEncryptionProviderで実装されています。
1.8.13