public class PlainCallbackHandler extends Object implements CallbackHandler, AuthRepositoryAware, DomainAware, SessionAware
Modifier and Type | Field and Description |
---|---|
protected String |
domain |
protected BareJID |
jid |
protected Logger |
log |
protected AuthRepository |
repo |
Constructor and Description |
---|
PlainCallbackHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(Callback[] callbacks) |
protected void |
handleAuthorizeCallback(AuthorizeCallback authCallback) |
protected void |
handleCallback(Callback callback) |
protected void |
handleNameCallback(NameCallback nc) |
protected void |
handleRealmCallback(RealmCallback rc) |
protected void |
handleVerifyPasswordCallback(VerifyPasswordCallback pc) |
void |
setAuthRepository(AuthRepository repo)
Sets AuthRepository.
|
void |
setDomain(String domain)
Sets name of domain from XMPP Stream.
|
void |
setSession(XMPPResourceConnection session)
Sets XMPP Session.
|
protected String domain
protected BareJID jid
protected Logger log
protected AuthRepository repo
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle
in interface CallbackHandler
IOException
UnsupportedCallbackException
public void setAuthRepository(AuthRepository repo)
AuthRepositoryAware
setAuthRepository
in interface AuthRepositoryAware
repo
- AuthRepository.public void setDomain(String domain)
DomainAware
setDomain
in interface DomainAware
domain
- domain namepublic void setSession(XMPPResourceConnection session)
SessionAware
setSession
in interface SessionAware
session
- XMPP session.protected void handleAuthorizeCallback(AuthorizeCallback authCallback)
protected void handleCallback(Callback callback) throws UnsupportedCallbackException, IOException
protected void handleNameCallback(NameCallback nc) throws IOException
IOException
protected void handleRealmCallback(RealmCallback rc) throws IOException
IOException
protected void handleVerifyPasswordCallback(VerifyPasswordCallback pc) throws IOException
IOException
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.