org.sonar.api.config
Class Encryption
java.lang.Object
org.sonar.api.config.Encryption
public final class Encryption
- extends Object
- Since:
- 3.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Encryption
public Encryption(@Nullable
String pathToSecretKey)
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)
Copyright © 2009-2013 SonarSource. All Rights Reserved.