public class PlainSPCallbackHandler extends Object implements CallbackHandler, AuthRepositoryAware, DomainAware
| Modifier and Type | Field and Description |
|---|---|
protected String |
domain |
protected BareJID |
jid |
protected Logger |
log |
protected AuthRepository |
repo |
| Constructor and Description |
|---|
PlainSPCallbackHandler() |
| 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.
|
protected String domain
protected BareJID jid
protected Logger log
protected AuthRepository repo
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle in interface CallbackHandlerIOExceptionUnsupportedCallbackExceptionprotected void handleAuthorizeCallback(AuthorizeCallback authCallback)
protected void handleCallback(Callback callback) throws UnsupportedCallbackException, IOException
protected void handleNameCallback(NameCallback nc) throws IOException
IOExceptionprotected void handleRealmCallback(RealmCallback rc) throws IOException
IOExceptionprotected void handleVerifyPasswordCallback(VerifyPasswordCallback pc) throws IOException
IOExceptionpublic void setAuthRepository(AuthRepository repo)
AuthRepositoryAwaresetAuthRepository in interface AuthRepositoryAwarerepo - AuthRepository.public void setDomain(String domain)
DomainAwaresetDomain in interface DomainAwaredomain - domain nameCopyright © 2017 "Tigase, Inc.". All rights reserved.