Package org.keycloak.jose.jwe.alg
Class RsaKeyEncryption256JWEAlgorithmProvider
- java.lang.Object
-
- org.keycloak.jose.jwe.alg.KeyEncryptionJWEAlgorithmProvider
-
- org.keycloak.jose.jwe.alg.RsaKeyEncryption256JWEAlgorithmProvider
-
- All Implemented Interfaces:
JWEAlgorithmProvider
public class RsaKeyEncryption256JWEAlgorithmProvider extends KeyEncryptionJWEAlgorithmProvider
-
-
Constructor Summary
Constructors Constructor Description RsaKeyEncryption256JWEAlgorithmProvider(String jcaAlgorithmName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decodeCek(byte[] encodedCek, Key privateKey)
byte[]
encodeCek(JWEEncryptionProvider encryptionProvider, JWEKeyStorage keyStorage, Key publicKey)
protected Cipher
getCipherProvider()
-
-
-
Constructor Detail
-
RsaKeyEncryption256JWEAlgorithmProvider
public RsaKeyEncryption256JWEAlgorithmProvider(String jcaAlgorithmName)
-
-
Method Detail
-
getCipherProvider
protected Cipher getCipherProvider() throws Exception
- Specified by:
getCipherProvider
in classKeyEncryptionJWEAlgorithmProvider
- Throws:
Exception
-
decodeCek
public byte[] decodeCek(byte[] encodedCek, Key privateKey) throws Exception
- Specified by:
decodeCek
in interfaceJWEAlgorithmProvider
- Overrides:
decodeCek
in classKeyEncryptionJWEAlgorithmProvider
- Throws:
Exception
-
encodeCek
public byte[] encodeCek(JWEEncryptionProvider encryptionProvider, JWEKeyStorage keyStorage, Key publicKey) throws Exception
- Specified by:
encodeCek
in interfaceJWEAlgorithmProvider
- Overrides:
encodeCek
in classKeyEncryptionJWEAlgorithmProvider
- Throws:
Exception
-
-