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 CiphergetCipherProvider()
-
-
-
Constructor Detail
-
RsaKeyEncryption256JWEAlgorithmProvider
public RsaKeyEncryption256JWEAlgorithmProvider(String jcaAlgorithmName)
-
-
Method Detail
-
getCipherProvider
protected Cipher getCipherProvider() throws Exception
- Specified by:
getCipherProviderin classKeyEncryptionJWEAlgorithmProvider- Throws:
Exception
-
decodeCek
public byte[] decodeCek(byte[] encodedCek, Key privateKey) throws Exception- Specified by:
decodeCekin interfaceJWEAlgorithmProvider- Overrides:
decodeCekin classKeyEncryptionJWEAlgorithmProvider- Throws:
Exception
-
encodeCek
public byte[] encodeCek(JWEEncryptionProvider encryptionProvider, JWEKeyStorage keyStorage, Key publicKey) throws Exception
- Specified by:
encodeCekin interfaceJWEAlgorithmProvider- Overrides:
encodeCekin classKeyEncryptionJWEAlgorithmProvider- Throws:
Exception
-
-