Class SecretResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.testutils.rest.resource.SecretResource
-
@Singleton public class SecretResource extends Object
-
-
Constructor Summary
Constructors Constructor Description SecretResource(SecretEncryptionService encryptionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdecrypt(RestContent stringToDecode)Stringencrypt(RestContent stringToEncrypt)booleanisEncrypted(RestContent stringToCheck)Check if provided string is encrypted by current Bamboo instance
-
-
-
Constructor Detail
-
SecretResource
public SecretResource(SecretEncryptionService encryptionService)
-
-
Method Detail
-
encrypt
public String encrypt(RestContent stringToEncrypt)
-
decrypt
public String decrypt(RestContent stringToDecode)
-
isEncrypted
public boolean isEncrypted(RestContent stringToCheck)
Check if provided string is encrypted by current Bamboo instance- Parameters:
stringToCheck-- Returns:
- true if provided string was encrypted by current Bamboo instance
-
-