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)
SecretEncryptionServiceInternal
isEncrypted
in interface SecretEncryptionServiceInternal
@NotNull public @NotNull String decrypt(@NotNull @NotNull String encryptedSecret)
SecretEncryptionServiceInternal
decrypt
in interface SecretEncryptionServiceInternal
@NotNull public @NotNull String encrypt(@NotNull @NotNull String secretToEncrypt)
SecretEncryptionServiceInternal
encrypt
in interface SecretEncryptionServiceInternal
public void reloadCipher()
SecretEncryptionServiceInternal
reloadCipher
in interface SecretEncryptionServiceInternal
protected byte[] encrypt(org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher encryptCipher, byte[] toEncrypt)
@TestOnly public static SecretEncryptionService forTesting()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.