| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.crypto; |
| | | |
| | |
| | | @SuppressWarnings("javadoc") |
| | | public class CryptoManagerTestCase extends CryptoTestCase { |
| | | |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void setUp() |
| | | throws Exception { |
| | | TestCaseUtils.startServer(); |
| | | } |
| | | |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void CleanUp() throws Exception { |
| | | // Removes at least secret keys added in this test case. |
| | | TestCaseUtils.restartServer(); |
| | |
| | | |
| | | @throws Exception In case an error occurs in the encryption routine. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testKeyPersistence() |
| | | throws Exception { |
| | | final CryptoManager cm = DirectoryServer.getCryptoManager(); |
| | |
| | | |
| | | @throws Exception In case something exceptional happens. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompromisedKey() throws Exception { |
| | | final CryptoManager cm = DirectoryServer.getCryptoManager(); |
| | | final String secretMessage = "zyxwvutsrqponmlkjihgfedcba"; |