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 TypeMethodDescriptionvoidprotected voidhandleAuthorizeCallback(AuthorizeCallback authCallback) protected voidhandleCallback(Callback callback) protected voidprotected voidprotected voidvoidSets AuthRepository.voidSets name of domain from XMPP Stream.voidsetSession(XMPPResourceConnection session) Sets XMPP Session.
-
Field Details
-
domain
-
jid
-
log
-
repo
-
-
Constructor Details
-
PlainCallbackHandler
public PlainCallbackHandler()
-
-
Method Details
-
handle
- Specified by:
handlein interfaceCallbackHandler- Throws:
IOExceptionUnsupportedCallbackException
-
setAuthRepository
Description copied from interface:AuthRepositoryAwareSets AuthRepository.- Specified by:
setAuthRepositoryin interfaceAuthRepositoryAware- Parameters:
repo- AuthRepository.
-
setDomain
Description copied from interface:DomainAwareSets name of domain from XMPP Stream.- Specified by:
setDomainin interfaceDomainAware- Parameters:
domain- domain name
-
setSession
Description copied from interface:SessionAwareSets XMPP Session.- Specified by:
setSessionin interfaceSessionAware- Parameters:
session- XMPP session.
-
handleAuthorizeCallback
-
handleCallback
-
handleNameCallback
- Throws:
IOException
-
handleRealmCallback
- Throws:
IOException
-
handleVerifyPasswordCallback
- Throws:
IOException
-