public class ConfiguredPrivateKeyPasswordProvider extends java.lang.Object implements PrivateKeyPasswordProvider
Although there is nothing to stop you from having a plain text private key password configured in adapter configuration using
this provider; it is strongly discouraged. You should consider using the Password.encode(String, String)
method to
generate an encoded password for inserting into configuration.
Password.decode(String)
In the adapter configuration file this class is aliased as configured-private-key-password-provider which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
ConfiguredPrivateKeyPasswordProvider() |
ConfiguredPrivateKeyPasswordProvider(java.lang.String encPassword) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEncodedPassword() |
char[] |
retrievePrivateKeyPassword()
Return the private key password as a char[] array.
|
void |
setEncodedPassword(java.lang.String encodedPassword) |
public ConfiguredPrivateKeyPasswordProvider()
public ConfiguredPrivateKeyPasswordProvider(java.lang.String encPassword)
public char[] retrievePrivateKeyPassword() throws PasswordException
retrievePrivateKeyPassword
in interface PrivateKeyPasswordProvider
Password.decode(String)
PasswordException
- wrapping any other exception.public java.lang.String getEncodedPassword()
public void setEncodedPassword(java.lang.String encodedPassword)