public class SecretEncryptionServiceImpl extends Object implements SecretEncryptionService
| Constructor and Description |
|---|
SecretEncryptionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
decrypt(@NotNull String encryptedSecret)
Decrypts the supplied secret.
|
@NotNull String |
decryptIfDecryptable(@NotNull String encryptedSecret)
Decrypts secret if possible or returns original string if not.
|
@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.
|
protected void |
setSecretEncryptionService(SecretEncryptionServiceInternal secretEncryptionService) |
public boolean isEncrypted(@NotNull
@NotNull String string)
SecretEncryptionServiceisEncrypted in interface SecretEncryptionService@NotNull public @NotNull String decrypt(@NotNull @NotNull String encryptedSecret)
SecretEncryptionServicedecrypt in interface SecretEncryptionService@NotNull public @NotNull String decryptIfDecryptable(@NotNull @NotNull String encryptedSecret)
SecretEncryptionServicedecryptIfDecryptable in interface SecretEncryptionServicepublic boolean isDecryptable(@NotNull
@NotNull String encryptedSecret)
isDecryptable in interface SecretEncryptionService@NotNull public @NotNull String encrypt(@NotNull @NotNull String secretToEncrypt)
SecretEncryptionServiceencrypt in interface SecretEncryptionServiceprotected void setSecretEncryptionService(SecretEncryptionServiceInternal secretEncryptionService)
Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.