Package tigase.auth.impl
Class PlainCallbackHandler
java.lang.Object
tigase.auth.impl.PlainCallbackHandler
- All Implemented Interfaces:
CallbackHandler
,AuthRepositoryAware
,Aware
,DomainAware
,SessionAware
public class PlainCallbackHandler
extends Object
implements CallbackHandler, AuthRepositoryAware, DomainAware, SessionAware
Implementation of CallbackHandler for authentication with SASL PLAIN or using plaintext password.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
handleAuthorizeCallback
(AuthorizeCallback authCallback) protected void
handleCallback
(Callback callback) protected void
protected void
protected void
void
Sets AuthRepository.void
Sets name of domain from XMPP Stream.void
setSession
(XMPPResourceConnection session) Sets XMPP Session.
-
Field Details
-
domain
-
jid
-
log
-
repo
-
-
Constructor Details
-
PlainCallbackHandler
public PlainCallbackHandler()
-
-
Method Details
-
handle
- Specified by:
handle
in interfaceCallbackHandler
- Throws:
IOException
UnsupportedCallbackException
-
setAuthRepository
Description copied from interface:AuthRepositoryAware
Sets AuthRepository.- Specified by:
setAuthRepository
in interfaceAuthRepositoryAware
- Parameters:
repo
- AuthRepository.
-
setDomain
Description copied from interface:DomainAware
Sets name of domain from XMPP Stream.- Specified by:
setDomain
in interfaceDomainAware
- Parameters:
domain
- domain name
-
setSession
Description copied from interface:SessionAware
Sets XMPP Session.- Specified by:
setSession
in interfaceSessionAware
- Parameters:
session
- XMPP session.
-
handleAuthorizeCallback
-
handleCallback
-
handleNameCallback
- Throws:
IOException
-
handleRealmCallback
- Throws:
IOException
-
handleVerifyPasswordCallback
- Throws:
IOException
-