public class MockSecretEncryptionService extends Object implements SecretEncryptionService
Constructor and Description |
---|
MockSecretEncryptionService() |
Modifier and Type | Method and Description |
---|---|
@NotNull String |
decrypt(@NotNull String encryptedSecret)
Decrypt give string.
|
@NotNull String |
encrypt(@NotNull String secretToEncrypt)
Encrypts the supplied string.
|
boolean |
isDecryptable(@NotNull String encryptedSecret) |
boolean |
isEncrypted(@NotNull String string)
Whether the supplied string has been encrypted by this service.
|
public boolean isEncrypted(@NotNull @NotNull String string)
SecretEncryptionService
isEncrypted
in interface SecretEncryptionService
public boolean isDecryptable(@NotNull @NotNull String encryptedSecret)
isDecryptable
in interface SecretEncryptionService
@NotNull public @NotNull String decrypt(@NotNull @NotNull String encryptedSecret)
encrypt(String)
decrypt
in interface SecretEncryptionService
@NotNull public @NotNull String encrypt(@NotNull @NotNull String secretToEncrypt)
SecretEncryptionService
encrypt
in interface SecretEncryptionService
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.