tigase.auth.mechanisms
Class AbstractSasl

java.lang.Object
  extended by tigase.auth.mechanisms.AbstractSasl
All Implemented Interfaces:
SaslServer
Direct Known Subclasses:
SaslANONYMOUS, SaslEXTERNAL, SaslPLAIN

public abstract class AbstractSasl
extends Object
implements SaslServer


Field Summary
protected  String authorizedId
           
protected  CallbackHandler callbackHandler
           
protected  boolean complete
           
protected  Map<String,Object> negotiatedProperty
           
protected  Map<? super String,?> props
           
 
Constructor Summary
protected AbstractSasl(Map<? super String,?> props, CallbackHandler callbackHandler)
           
 
Method Summary
 void dispose()
           
 Object getNegotiatedProperty(String propName)
           
protected  void handleCallbacks(Callback... callbacks)
           
 boolean isComplete()
           
protected static boolean isEmpty(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

authorizedId

protected String authorizedId

callbackHandler

protected final CallbackHandler callbackHandler

complete

protected boolean complete

negotiatedProperty

protected final Map<String,Object> negotiatedProperty

props

protected final Map<? super String,?> props
Constructor Detail

AbstractSasl

protected AbstractSasl(Map<? super String,?> props,
                       CallbackHandler callbackHandler)
Method Detail

isEmpty

protected static final boolean isEmpty(Object x)

dispose

public void dispose()
             throws SaslException
Specified by:
dispose in interface SaslServer
Throws:
SaslException

getNegotiatedProperty

public Object getNegotiatedProperty(String propName)
Specified by:
getNegotiatedProperty in interface SaslServer

handleCallbacks

protected void handleCallbacks(Callback... callbacks)
                        throws SaslException
Throws:
SaslException

isComplete

public boolean isComplete()
Specified by:
isComplete in interface SaslServer

split

protected String[] split(byte[] byteArray,
                         String defaultValue)


Copyright © 2013 Tigase. All rights reserved.