use of org.jboss.as.security.vault.VaultSession in project wildfly by wildfly.
the class RemoveSecuredAttributeTestCase method testRemoveSecuredAttributeBySameVaultSession.
/**
* Test of remove secured attribute
*
* @throws Exception
*/
@Test
public void testRemoveSecuredAttributeBySameVaultSession() throws Exception {
VaultSession vaultSession = vaultHandler.getVaultSession();
String securedAttribute = addSecuredAttributeToDefaultVault(vaultSession, ATTRIBUTE_VALUE);
assertArrayEquals("Retrieved secured attribute differs from the saved", vaultSession.retrieveSecuredAttribute(VAULT_BLOCK, ATTRIBUTE_NAME), ATTRIBUTE_VALUE);
assertCorrectAttributeRemoval(vaultSession, securedAttribute);
}
Aggregations