Package tigase.auth.mechanisms
Class AbstractSasl
- java.lang.Object
-
- tigase.auth.mechanisms.AbstractSasl
-
- All Implemented Interfaces:
SaslServer
- Direct Known Subclasses:
AbstractSaslSCRAM,SaslANONYMOUS,SaslEXTERNAL,SaslPLAIN
public abstract class AbstractSasl extends Object implements SaslServer
-
-
Field Summary
Fields Modifier and Type Field Description protected StringauthorizedIdprotected CallbackHandlercallbackHandlerprotected booleancompleteprotected Loggerlogprotected Map<String,Object>negotiatedPropertystatic StringPASSWORD_NOT_VERIFIED_MSGprotected Map<? super String,?>propsstatic StringSASL_STRICT_MODE_KEY
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSasl(Map<? super String,?> props, CallbackHandler callbackHandler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()ObjectgetNegotiatedProperty(String propName)protected voidhandleCallbacks(Callback... callbacks)static booleanisAuthzIDIgnored()booleanisComplete()protected static booleanisEmpty(Object x)protected String[]split(byte[] byteArray, String defaultValue)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.security.sasl.SaslServer
evaluateResponse, getAuthorizationID, getMechanismName, unwrap, wrap
-
-
-
-
Field Detail
-
SASL_STRICT_MODE_KEY
public static final String SASL_STRICT_MODE_KEY
- See Also:
- Constant Field Values
-
PASSWORD_NOT_VERIFIED_MSG
public static String PASSWORD_NOT_VERIFIED_MSG
-
callbackHandler
protected final CallbackHandler callbackHandler
-
log
protected final Logger log
-
authorizedId
protected String authorizedId
-
complete
protected boolean complete
-
-
Constructor Detail
-
AbstractSasl
protected AbstractSasl(Map<? super String,?> props, CallbackHandler callbackHandler)
-
-
Method Detail
-
isAuthzIDIgnored
public static boolean isAuthzIDIgnored()
-
isEmpty
protected static final boolean isEmpty(Object x)
-
dispose
public void dispose()
- Specified by:
disposein interfaceSaslServer
-
getNegotiatedProperty
public Object getNegotiatedProperty(String propName)
- Specified by:
getNegotiatedPropertyin interfaceSaslServer
-
handleCallbacks
protected void handleCallbacks(Callback... callbacks) throws SaslException
- Throws:
SaslException
-
isComplete
public boolean isComplete()
- Specified by:
isCompletein interfaceSaslServer
-
-