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 TypeMethodDescriptionvoid
protected void
handleAuthorizeCallback
(AuthorizeCallback authCallback) protected void
handleCallback
(Callback callback) protected void
protected void
protected void
handleSaltCallback
(SaltCallback callback) protected void
void
Sets AuthRepository.void
Sets name of domain from XMPP Stream.void
setMechanismName
(String mechanismName) void
setSession
(XMPPResourceConnection session) Sets XMPP Session.
-
Constructor Details
-
ScramCallbackHandler
public ScramCallbackHandler()
-
-
Method Details
-
handle
- Specified by:
handle
in interfaceCallbackHandler
- Throws:
IOException
UnsupportedCallbackException
-
setMechanismName
- Specified by:
setMechanismName
in interfaceMechanismNameAware
-
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
- Throws:
SaslException
-
handleCallback
-
handleNameCallback
- Throws:
IOException
-
handlePBKDIterationsCallback
- Throws:
SaslException
-
handleSaltCallback
- Throws:
SaslException
-
handleSaltedPasswordCallbackCallback
protected void handleSaltedPasswordCallbackCallback(SaltedPasswordCallback callback) throws SaslException - Throws:
SaslException
-