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