Class RemoteAgentSecretEncryptionService
java.lang.Object
com.atlassian.bamboo.v2.build.agent.remote.crypto.RemoteAgentSecretEncryptionService
- All Implemented Interfaces:
SecretEncryptionService
@NotThreadSafe
public class RemoteAgentSecretEncryptionService
extends Object
implements SecretEncryptionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringDecrypts the supplied secret.@NotNull StringdecryptIfDecryptable(@NotNull String encryptedSecret) Decrypts secret if possible or returns original string if not.@NotNull StringEncrypts the supplied string.booleanisDecryptable(@NotNull String encryptedSecret) booleanisEncrypted(@NotNull String string) Whether the supplied string has been encrypted by this service.
-
Constructor Details
-
RemoteAgentSecretEncryptionService
public RemoteAgentSecretEncryptionService() -
RemoteAgentSecretEncryptionService
protected RemoteAgentSecretEncryptionService(boolean cacheCiphers)
-
-
Method Details
-
isEncrypted
Description copied from interface:SecretEncryptionServiceWhether the supplied string has been encrypted by this service.- Specified by:
isEncryptedin interfaceSecretEncryptionService
-
isDecryptable
- Specified by:
isDecryptablein interfaceSecretEncryptionService- Returns:
- true if Bamboo can decrypt given value.
-
decrypt
Description copied from interface:SecretEncryptionServiceDecrypts the supplied secret.- Specified by:
decryptin interfaceSecretEncryptionService
-
decryptIfDecryptable
Description copied from interface:SecretEncryptionServiceDecrypts secret if possible or returns original string if not.- Specified by:
decryptIfDecryptablein interfaceSecretEncryptionService
-
encrypt
Description copied from interface:SecretEncryptionServiceEncrypts the supplied string.- Specified by:
encryptin interfaceSecretEncryptionService
-