@Component public class EncryptionServiceImpl extends Object implements EncryptionService
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PASSWORD |
Constructor and Description |
---|
EncryptionServiceImpl() |
EncryptionServiceImpl(String encryptionPassword) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkUserPassword(String plain,
String digest) |
String |
decryptConnectorPassword(String input) |
String |
encryptConnectorPassword(String input)
Symmetric key encryption
|
String |
encryptUserPassword(String input)
Asymmetric key encryption
|
String |
getEncryptionPassword() |
String |
getPasswordFilePath() |
static void |
main(String[] args) |
void |
setEncryptionPassword(String encryptionPassword) |
void |
setPasswordFilePath(String passwordFilePath) |
public static final String DEFAULT_PASSWORD
public EncryptionServiceImpl()
public EncryptionServiceImpl(String encryptionPassword)
public String encryptConnectorPassword(String input)
EncryptionService
encryptConnectorPassword
in interface EncryptionService
public String decryptConnectorPassword(String input)
decryptConnectorPassword
in interface EncryptionService
public String getEncryptionPassword()
public static void main(String[] args)
public String getPasswordFilePath()
public void setPasswordFilePath(String passwordFilePath)
public void setEncryptionPassword(String encryptionPassword)
public String encryptUserPassword(String input)
EncryptionService
encryptUserPassword
in interface EncryptionService
public boolean checkUserPassword(String plain, String digest)
checkUserPassword
in interface EncryptionService
Copyright © 2015. All rights reserved.