# Uses of Class
com.norconex.commons.lang.encrypt.EncryptionKey

Packages that use EncryptionKey
Package
Description
com.norconex.commons.lang.encrypt
Encryption-related classes.
com.norconex.commons.lang.security

- ## Uses of EncryptionKey in com.norconex.commons.lang.encrypt

  Methods in com.norconex.commons.lang.encrypt with parameters of type EncryptionKey
  Modifier and Type
  Method
  Description
  `static String`
  EncryptionUtil.`decrypt(String encryptedText, EncryptionKey encryptionKey)`
  Decrypts the given encrypted text with the encryption key supplied.
  `static String`
  EncryptionUtil.`encrypt(String textToEncrypt, EncryptionKey encryptionKey)`
  Encrypts the given text with the encryption key supplied.

- ## Uses of EncryptionKey in com.norconex.commons.lang.security

  Methods in com.norconex.commons.lang.security that return EncryptionKey
  Modifier and Type
  Method
  Description
  `EncryptionKey`
  Credentials.`getPasswordKey()`
  Credential password encryption key pointer (provided the password is encrypted).
  Methods in com.norconex.commons.lang.security with parameters of type EncryptionKey
  Modifier and Type
  Method
  Description
  `Credentials`
  Credentials.`setPasswordKey(EncryptionKey passwordKey)`
  Credential password encryption key pointer (provided the password is encrypted).
  `KeyStoreBuilder`
  KeyStoreBuilder.`setPasswordKey(EncryptionKey passwordKey)`
  Sets the password encryption key.
  Constructors in com.norconex.commons.lang.security with parameters of type EncryptionKey
  Modifier
  Constructor
  Description
  ``
  `Credentials(String username, String password, EncryptionKey passwordKey)`
  Creates a new Credentials instance with the supplied username, password and password key.