Package com.zeroc.IceSSL
Interface PasswordCallback
public interface PasswordCallback
A password callback is an alternate way to supply the plug-in with
passwords; this avoids using plain text configuration properties.
-
Method Summary
Modifier and TypeMethodDescriptionchar[]Returns the password for validating the keystore.char[]getPassword(String alias) Returns the password for the key.char[]Returns the password for validating the truststore.
-
Method Details
-
getPassword
Returns the password for the key. If an alias was selected by setting theIceSSL.Aliasproperty,aliascontains the property's value.- Parameters:
alias- The value of the propertyIceSSL.Alias, if that property is set;null, otherwise.- Returns:
- The password for the key. The return value must not be
null.
-
getTruststorePassword
char[] getTruststorePassword()Returns the password for validating the truststore.- Returns:
- The password. To skip truststore validation,
return
null.
-
getKeystorePassword
char[] getKeystorePassword()Returns the password for validating the keystore.- Returns:
- The password. To skip keystore validation,
return
null.
-