org.sonar.api.config
Class Encryption

java.lang.Object
  extended by org.sonar.api.config.Encryption

public final class Encryption
extends Object

Since:
3.0

Method Summary
 String decrypt(String encryptedText)
           
 String encrypt(String clearText)
           
 String generateRandomSecretKey()
           
 boolean hasSecretKey()
          Checks the availability of the secret key, that is required to encrypt and decrypt.
 boolean isEncrypted(String value)
           
 String scramble(String clearText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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-2012 SonarSource. All Rights Reserved.