Class CredentialsConfidentialKey

    • Constructor Detail

      • CredentialsConfidentialKey

        public CredentialsConfidentialKey​(String id)
      • CredentialsConfidentialKey

        public CredentialsConfidentialKey​(Class owner,
                                          String shortName)
        Constructor.
        Parameters:
        owner - the owning class name.
        shortName - the name.
    • Method Detail

      • encrypt

        public Cipher encrypt​(byte[] salt)
        Returns a Cipher object for encrypting with this key.
        Parameters:
        salt - the salt to use for the Cipher
        Returns:
        the Cipher
      • decrypt

        public Cipher decrypt​(byte[] salt)
        Returns a Cipher object for decrypting with this key.
        Parameters:
        salt - the salt to use for the Cipher
        Returns:
        the Cipher