tigase.auth.mechanisms
Class SaslPLAIN

java.lang.Object
  extended by tigase.auth.mechanisms.AbstractSasl
      extended by tigase.auth.mechanisms.SaslPLAIN
All Implemented Interfaces:
SaslServer

public class SaslPLAIN
extends AbstractSasl

SASL-PLAIN mechanism.

Called callbacks in order:


Field Summary
 
Fields inherited from class tigase.auth.mechanisms.AbstractSasl
authorizedId, callbackHandler, complete, negotiatedProperty, props
 
Method Summary
 byte[] evaluateResponse(byte[] response)
           
 String getAuthorizationID()
           
 String getMechanismName()
           
 byte[] unwrap(byte[] incoming, int offset, int len)
           
 byte[] wrap(byte[] outgoing, int offset, int len)
           
 
Methods inherited from class tigase.auth.mechanisms.AbstractSasl
dispose, getNegotiatedProperty, handleCallbacks, isComplete, isEmpty, split
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

evaluateResponse

public byte[] evaluateResponse(byte[] response)
                        throws SaslException
Throws:
SaslException

getAuthorizationID

public String getAuthorizationID()

getMechanismName

public String getMechanismName()

unwrap

public byte[] unwrap(byte[] incoming,
                     int offset,
                     int len)
              throws SaslException
Throws:
SaslException

wrap

public byte[] wrap(byte[] outgoing,
                   int offset,
                   int len)
            throws SaslException
Throws:
SaslException


Copyright © 2013 Tigase. All rights reserved.