| | |
| | | { |
| | | if (searchEntry.hasObjectClass(ocCipherKey)) |
| | | { |
| | | DirectoryServer.getCryptoManager().importCipherKeyEntry(searchEntry); |
| | | getCryptoManager().importCipherKeyEntry(searchEntry); |
| | | } |
| | | else if (searchEntry.hasObjectClass(ocMacKey)) |
| | | { |
| | | DirectoryServer.getCryptoManager().importMacKeyEntry(searchEntry); |
| | | getCryptoManager().importMacKeyEntry(searchEntry); |
| | | } |
| | | } |
| | | catch (CryptoManagerException e) |
| | |
| | | } |
| | | } |
| | | |
| | | private CryptoManagerImpl getCryptoManager() |
| | | { |
| | | return DirectoryServer.getCryptoManager(); |
| | | } |
| | | |
| | | |
| | | private void handleInstanceKeySearchEntry(SearchResultEntry searchEntry) |
| | | throws DirectoryException |
| | |
| | | { |
| | | if (entry.hasObjectClass(ocCipherKey)) |
| | | { |
| | | DirectoryServer.getCryptoManager().importCipherKeyEntry(entry); |
| | | getCryptoManager().importCipherKeyEntry(entry); |
| | | } |
| | | else if (entry.hasObjectClass(ocMacKey)) |
| | | { |
| | | DirectoryServer.getCryptoManager().importMacKeyEntry(entry); |
| | | getCryptoManager().importMacKeyEntry(entry); |
| | | } |
| | | } |
| | | catch (CryptoManagerException e) |
| | |
| | | { |
| | | if (newEntry.hasObjectClass(ocCipherKey)) |
| | | { |
| | | DirectoryServer.getCryptoManager().importCipherKeyEntry(newEntry); |
| | | getCryptoManager().importCipherKeyEntry(newEntry); |
| | | } |
| | | else if (newEntry.hasObjectClass(ocMacKey)) |
| | | { |
| | | DirectoryServer.getCryptoManager().importMacKeyEntry(newEntry); |
| | | getCryptoManager().importMacKeyEntry(newEntry); |
| | | } |
| | | } |
| | | catch (CryptoManagerException e) |