Package tigase.auth.impl
Class ScramCallbackHandler
java.lang.Object
tigase.auth.impl.ScramCallbackHandler
- All Implemented Interfaces:
CallbackHandler,AuthRepositoryAware,Aware,DomainAware,MechanismNameAware,SessionAware
public class ScramCallbackHandler
extends Object
implements CallbackHandler, AuthRepositoryAware, SessionAware, DomainAware, MechanismNameAware
Implementation of CallbackHandler to support authentication using SASL SCRAM-* authentication mechanism.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidhandleAuthorizeCallback(AuthorizeCallback authCallback) protected voidhandleCallback(Callback callback) protected voidprotected voidprotected voidhandleSaltCallback(SaltCallback callback) voidSets AuthRepository.voidSets name of domain from XMPP Stream.voidsetMechanismName(String mechanismName) voidsetSession(XMPPResourceConnection session) Sets XMPP Session.
-
Constructor Details
-
ScramCallbackHandler
public ScramCallbackHandler()
-
-
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
-
setMechanismName
- Specified by:
setMechanismNamein interfaceMechanismNameAware
-
setSession
Description copied from interface:SessionAwareSets XMPP Session.- Specified by:
setSessionin interfaceSessionAware- Parameters:
session- XMPP session.
-
handleAuthorizeCallback
- Throws:
SaslException
-
handleCallback
-
handleNameCallback
- Throws:
IOException
-
handlePBKDIterationsCallback
- Throws:
SaslException
-
handleSaltCallback
- Throws:
SaslException
-