Class SecurityVaultUtil


  • public class SecurityVaultUtil
    extends Object
    Common utility methods associated with the SecurityVault
    Author:
    anil saldhana
    • Constructor Detail

      • SecurityVaultUtil

        public SecurityVaultUtil()
    • Method Detail

      • isVaultFormat

        public static boolean isVaultFormat​(char[] chars)
        Check whether the string has the format of the vault
        Parameters:
        chars -
        Returns:
      • isVaultFormat

        public static boolean isVaultFormat​(String str)
        Check whether the string has the format of the vault
        Parameters:
        str -
        Returns:
      • getValue

        public static char[] getValue​(String vaultString)
                               throws SecurityVaultException

        Given the vault formatted string, retrieve the attribute value from the vault

        Note: the vault formatted string will be of the form VAULT::vault_block::attribute_name::sharedKey

        Vault Block acts as the unique id of a block such as "messaging", "security" etc Attribute Name is the name of the attribute whose value we are preserving Shared Key is the key generated by the off line vault during storage of the attribute value

        Parameters:
        vaultString -
        Returns:
        Throws:
        SecurityVaultException