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.
|
public boolean isEncrypted(@NotNull String string)
SecretEncryptionServiceInternal
isEncrypted
in interface SecretEncryptionServiceInternal
@NotNull public String decrypt(@NotNull String encryptedSecret)
SecretEncryptionServiceInternal
decrypt
in interface SecretEncryptionServiceInternal
@NotNull public String encrypt(@NotNull String secretToEncrypt)
SecretEncryptionServiceInternal
encrypt
in interface SecretEncryptionServiceInternal
protected 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.