Package org.keycloak.crypto.def
Class DefaultRsaKeyEncryptionJWEAlgorithmProvider
- java.lang.Object
-
- org.keycloak.crypto.def.DefaultRsaKeyEncryptionJWEAlgorithmProvider
-
- All Implemented Interfaces:
JWEAlgorithmProvider
- Direct Known Subclasses:
DefaultRsaKeyEncryption256JWEAlgorithmProvider
public class DefaultRsaKeyEncryptionJWEAlgorithmProvider extends Object implements JWEAlgorithmProvider
-
-
Constructor Summary
Constructors Constructor Description DefaultRsaKeyEncryptionJWEAlgorithmProvider(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 voidinitCipher(Cipher cipher, int mode, Key key)
-
-
-
Constructor Detail
-
DefaultRsaKeyEncryptionJWEAlgorithmProvider
public DefaultRsaKeyEncryptionJWEAlgorithmProvider(String jcaAlgorithmName)
-
-
Method Detail
-
decodeCek
public byte[] decodeCek(byte[] encodedCek, Key privateKey) throws Exception- Specified by:
decodeCekin interfaceJWEAlgorithmProvider- Throws:
Exception
-
encodeCek
public byte[] encodeCek(JWEEncryptionProvider encryptionProvider, JWEKeyStorage keyStorage, Key publicKey) throws Exception
- Specified by:
encodeCekin interfaceJWEAlgorithmProvider- Throws:
Exception
-
-