Package org.openiam.esb.core.service
Interface KeyManagementService
-
- All Known Implementing Classes:
KeyManagementServiceImpl
public interface KeyManagementService
Created by: Alexander Duckardt Date: 09.10.12
-
-
Method Summary
-
-
-
Method Detail
-
getCryptorAlgorithm
String getCryptorAlgorithm()
-
getUserKey
byte[] getUserKey(String userId, String keyName) throws EncryptionException
- Throws:
EncryptionException
-
getSystemUserKey
byte[] getSystemUserKey(String keyName) throws EncryptionException
- Throws:
EncryptionException
-
generateUserKeys
Set<UserKey> generateUserKeys(UserEntity user) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
getCookieKey
byte[] getCookieKey() throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
generateCookieKey
byte[] generateCookieKey() throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
generateMasterKey
void generateMasterKey() throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
initKeyManagement
void initKeyManagement() throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
reInitKeyManagement
void reInitKeyManagement() throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
migrateData
void migrateData(String oldSecretKey) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
encryptData
String encryptData(String data) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
decryptData
String decryptData(String encryptedData) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
eraseData
void eraseData(String key)
-
decryptData
String decryptData(String userId, String encryptedData) throws Exception
- Throws:
Exception
-
encrypt
String encrypt(String userId, KeyName keyName, String data) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
encrypt
String encrypt(byte[] key, String data) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
decrypt
String decrypt(String userId, KeyName keyName, String encryptedData) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
decrypt
String decrypt(byte[] key, String encryptedData) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
saveSshKey
String saveSshKey(UserSshKey sshKey) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
getSshKeys
List<UserSshKey> getSshKeys(UserSshKeySearchBean sb, int from, int size, boolean showPk) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
getSshKeysCount
long getSshKeysCount(UserSshKeySearchBean sb)
-
deleteSshKeyById
void deleteSshKeyById(String id) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
-