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
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
Decrypts the supplied secret.@NotNull String
decryptIfDecryptable
(@NotNull String encryptedSecret) Decrypts secret if possible or returns original string if not.@NotNull String
Encrypts the supplied string.boolean
isDecryptable
(@NotNull String encryptedSecret) boolean
isEncrypted
(@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:SecretEncryptionService
Whether the supplied string has been encrypted by this service.- Specified by:
isEncrypted
in interfaceSecretEncryptionService
-
isDecryptable
- Specified by:
isDecryptable
in interfaceSecretEncryptionService
- Returns:
- true if Bamboo can decrypt given value.
-
decrypt
Description copied from interface:SecretEncryptionService
Decrypts the supplied secret.- Specified by:
decrypt
in interfaceSecretEncryptionService
-
decryptIfDecryptable
Description copied from interface:SecretEncryptionService
Decrypts secret if possible or returns original string if not.- Specified by:
decryptIfDecryptable
in interfaceSecretEncryptionService
-
encrypt
Description copied from interface:SecretEncryptionService
Encrypts the supplied string.- Specified by:
encrypt
in interfaceSecretEncryptionService
-