Class CredentialsConfidentialKey

java.lang.Object
jenkins.security.ConfidentialKey
com.cloudbees.plugins.credentials.CredentialsConfidentialKey

public class CredentialsConfidentialKey extends ConfidentialKey
ConfidentialKey that stores a SecretKey for shared-secret cryptography (AES).
Since:
2.1.5
  • Constructor Details

    • CredentialsConfidentialKey

      public CredentialsConfidentialKey(String id)
    • CredentialsConfidentialKey

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

    • 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