org.apache.qpid.server.security.auth.sasl.plain
Class PlainSaslServer

java.lang.Object
  extended by org.apache.qpid.server.security.auth.sasl.plain.PlainSaslServer
All Implemented Interfaces:
SaslServer

public class PlainSaslServer
extends Object
implements SaslServer


Field Summary
static String MECHANISM
           
 
Constructor Summary
PlainSaslServer(CallbackHandler cbh)
           
 
Method Summary
 void dispose()
           
 byte[] evaluateResponse(byte[] response)
           
 String getAuthorizationID()
           
 String getMechanismName()
           
 Object getNegotiatedProperty(String propName)
           
 boolean isComplete()
           
 byte[] unwrap(byte[] incoming, int offset, int len)
           
 byte[] wrap(byte[] outgoing, int offset, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MECHANISM

public static final String MECHANISM
See Also:
Constant Field Values
Constructor Detail

PlainSaslServer

public PlainSaslServer(CallbackHandler cbh)
Method Detail

getMechanismName

public String getMechanismName()
Specified by:
getMechanismName in interface SaslServer

evaluateResponse

public byte[] evaluateResponse(byte[] response)
                        throws SaslException
Specified by:
evaluateResponse in interface SaslServer
Throws:
SaslException

isComplete

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

getAuthorizationID

public String getAuthorizationID()
Specified by:
getAuthorizationID in interface SaslServer

unwrap

public byte[] unwrap(byte[] incoming,
                     int offset,
                     int len)
              throws SaslException
Specified by:
unwrap in interface SaslServer
Throws:
SaslException

wrap

public byte[] wrap(byte[] outgoing,
                   int offset,
                   int len)
            throws SaslException
Specified by:
wrap in interface SaslServer
Throws:
SaslException

getNegotiatedProperty

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

dispose

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


Licensed to the Apache Software Foundation