Class Encryption

java.lang.Object
org.sonar.api.config.internal.Encryption

public final class Encryption extends Object
Since:
3.0
  • Constructor Details

    • Encryption

      public Encryption(@Nullable String pathToSecretKey)
  • Method Details

    • setPathToSecretKey

      public void setPathToSecretKey(@Nullable String pathToSecretKey)
    • hasSecretKey

      public boolean hasSecretKey()
      Checks the availability of the secret key, that is required to encrypt and decrypt.
    • isEncrypted

      public boolean isEncrypted(String value)
    • encrypt

      public String encrypt(String clearText)
    • scramble

      public String scramble(String clearText)
    • generateRandomSecretKey

      public String generateRandomSecretKey()
    • decrypt

      public String decrypt(String encryptedText)