com.atlassian.bamboo.security
Interface EncryptionService

All Known Implementing Classes:
EncryptionServiceImpl

public interface EncryptionService


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

Method Detail

encrypt

@NotNull
String encrypt(@Nullable
                       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
String decrypt(@Nullable
                       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
String hashPassword(@NotNull
                            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 © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.