public class SecretEncryptionServiceInternalImpl extends Object implements SecretEncryptionServiceInternal
| Constructor and Description |
|---|
SecretEncryptionServiceInternalImpl() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
decrypt(@NotNull String encryptedSecret)
Decrypts the supplied secret.
|
protected byte[] |
encrypt(org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher encryptCipher,
byte[] toEncrypt) |
@NotNull String |
encrypt(@NotNull String secretToEncrypt)
Encrypts the supplied string.
|
static SecretEncryptionService |
forTesting() |
boolean |
isEncrypted(@NotNull String string)
Whether the supplied string has been encrypted by this service.
|
void |
reloadCipher()
Enforce reloading current cipher.
|
public boolean isEncrypted(@NotNull
@NotNull String string)
SecretEncryptionServiceInternalisEncrypted in interface SecretEncryptionServiceInternal@NotNull public @NotNull String decrypt(@NotNull @NotNull String encryptedSecret)
SecretEncryptionServiceInternaldecrypt in interface SecretEncryptionServiceInternal@NotNull public @NotNull String encrypt(@NotNull @NotNull String secretToEncrypt)
SecretEncryptionServiceInternalencrypt in interface SecretEncryptionServiceInternalpublic void reloadCipher()
SecretEncryptionServiceInternalreloadCipher in interface SecretEncryptionServiceInternalprotected byte[] encrypt(org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher encryptCipher,
byte[] toEncrypt)
@TestOnly public static SecretEncryptionService forTesting()
Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.