mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 21:17:58 +01:00
Callback handler was not getting set properly
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11018 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
fdca9b339d
commit
0014cff963
1 changed files with 3 additions and 3 deletions
|
@ -226,7 +226,7 @@ public class XMPPConnection {
|
|||
config.setSASLAuthenticationEnabled(true);
|
||||
config.setDebuggerEnabled(DEBUG_ENABLED);
|
||||
this.configuration = config;
|
||||
this.callbackHandler = null;
|
||||
this.callbackHandler = config.getCallbackHandler();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -240,7 +240,7 @@ public class XMPPConnection {
|
|||
*/
|
||||
public XMPPConnection(ConnectionConfiguration config) {
|
||||
this.configuration = config;
|
||||
this.callbackHandler = null;
|
||||
this.callbackHandler = config.getCallbackHandler();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1219,9 +1219,9 @@ public class XMPPConnection {
|
|||
else {
|
||||
ks = KeyStore.getInstance(configuration.getKeystoreType());
|
||||
try {
|
||||
ks.load(new FileInputStream(configuration.getKeystorePath()), pcb.getPassword());
|
||||
pcb = new PasswordCallback("Keystore Password: ",false);
|
||||
callbackHandler.handle(new Callback[]{pcb});
|
||||
ks.load(new FileInputStream(configuration.getKeystorePath()), pcb.getPassword());
|
||||
}
|
||||
catch(Exception e) {
|
||||
ks = null;
|
||||
|
|
Loading…
Reference in a new issue