Package org.keycloak.crypto.elytron
Class ElytronRsaKeyEncryptionJWEAlgorithmProvider
- java.lang.Object
-
- org.keycloak.crypto.elytron.ElytronRsaKeyEncryptionJWEAlgorithmProvider
-
- All Implemented Interfaces:
JWEAlgorithmProvider
- Direct Known Subclasses:
ElytronRsaKeyEncryption256JWEAlgorithmProvider
public class ElytronRsaKeyEncryptionJWEAlgorithmProvider extends Object implements JWEAlgorithmProvider
- Author:
- David Anderson
-
-
Constructor Summary
Constructors Constructor Description ElytronRsaKeyEncryptionJWEAlgorithmProvider(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
-
ElytronRsaKeyEncryptionJWEAlgorithmProvider
public ElytronRsaKeyEncryptionJWEAlgorithmProvider(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
-
-