com.atlassian.bamboo.security
Interface EncryptionService

All Known Implementing Classes:
EncryptionServiceImpl

public interface EncryptionService


Method Summary
 java.lang.String decrypt(java.lang.String data)
          Set of complementary methods encrypt(String) and decrypt(String) provide means to obfuscate sensitive data.
 java.lang.String encrypt(java.lang.String data)
          Set of complementary methods encrypt(String) and decrypt(String) provide means to obfuscate sensitive data.
 java.lang.String hashPassword(java.lang.String password)
          Provides a hash for the given password.
 

Method Detail

encrypt

@NotNull
java.lang.String encrypt(@Nullable
                                 java.lang.String data)
                         throws EncryptionException
Set of complementary methods encrypt(String) and decrypt(String) provide means to obfuscate sensitive data.

Parameters:
data - string to be encrypted
Returns:
encrypted string
Throws:
EncryptionException - when encryption failed

decrypt

@NotNull
java.lang.String decrypt(@Nullable
                                 java.lang.String data)
                         throws EncryptionException
Set of complementary methods encrypt(String) and decrypt(String) provide means to obfuscate sensitive data.

Parameters:
data - string to be decrypted
Returns:
decrypted string
Throws:
EncryptionException - when decryption failed

hashPassword

@NotNull
java.lang.String hashPassword(@NotNull
                                      java.lang.String password)
                              throws EncryptionException
Provides a hash for the given password. This is a copy of a PasswordService#encrypt method which is probably unused at the moment.

Parameters:
password - The unencrypted password.
Returns:
password hash in UTF-8 characters
Throws:
EncryptionException - Failed to encrypt the password


Copyright © 2012 Atlassian. All Rights Reserved.