Class EncryptorServiceImpl
java.lang.Object
org.qubership.atp.environments.service.direct.impl.EncryptorServiceImpl
- All Implemented Interfaces:
EncryptorService
@Service("encryptorService")
public class EncryptorServiceImpl
extends Object
implements EncryptorService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEncryptorServiceImpl(org.qubership.atp.crypt.api.Encryptor encryptor, boolean useEncryption) -
Method Summary
Modifier and TypeMethodDescriptiondecodeBase64(String source) encryptParameter(String name, String parameter) encryptParameters(ConnectionParameters parameters) encryptString(String sourceParameter)
-
Field Details
-
encryptor
protected org.qubership.atp.crypt.api.Encryptor encryptor
-
-
Constructor Details
-
EncryptorServiceImpl
@Autowired public EncryptorServiceImpl(@Nonnull org.qubership.atp.crypt.api.Encryptor encryptor, @Value("${atp.crypto.enabled:false}") boolean useEncryption)
-
-
Method Details
-
encryptParameters
- Specified by:
encryptParametersin interfaceEncryptorService
-
encryptParameter
- Specified by:
encryptParameterin interfaceEncryptorService
-
encryptString
public String encryptString(String sourceParameter) throws org.qubership.atp.crypt.exception.AtpEncryptException - Specified by:
encryptStringin interfaceEncryptorService- Throws:
org.qubership.atp.crypt.exception.AtpEncryptException
-
decodeBase64
- Specified by:
decodeBase64in interfaceEncryptorService
-