org.apache.qpid.server.security.auth.sasl.crammd5
Class CRAMMD5HexSaslServer

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

public class CRAMMD5HexSaslServer
extends Object
implements SaslServer


Field Summary
static String MECHANISM
           
 
Constructor Summary
CRAMMD5HexSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, 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

CRAMMD5HexSaslServer

public CRAMMD5HexSaslServer(String mechanism,
                            String protocol,
                            String serverName,
                            Map<String,?> props,
                            CallbackHandler cbh)
                     throws SaslException
Throws:
SaslException
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