org.apache.qpid.client.security.amqplain
Class AmqPlainSaslClient

java.lang.Object
  extended by org.apache.qpid.client.security.amqplain.AmqPlainSaslClient
All Implemented Interfaces:
SaslClient

public class AmqPlainSaslClient
extends Object
implements SaslClient

Implements the "AMQPlain" authentication protocol that uses FieldTables to send username and pwd.


Field Summary
static String MECHANISM
          The name of this mechanism
 
Constructor Summary
AmqPlainSaslClient(CallbackHandler cbh)
           
 
Method Summary
 void dispose()
           
 byte[] evaluateChallenge(byte[] challenge)
           
 String getMechanismName()
           
 Object getNegotiatedProperty(String propName)
           
 boolean hasInitialResponse()
           
 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
The name of this mechanism

See Also:
Constant Field Values
Constructor Detail

AmqPlainSaslClient

public AmqPlainSaslClient(CallbackHandler cbh)
Method Detail

getMechanismName

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

hasInitialResponse

public boolean hasInitialResponse()
Specified by:
hasInitialResponse in interface SaslClient

evaluateChallenge

public byte[] evaluateChallenge(byte[] challenge)
                         throws SaslException
Specified by:
evaluateChallenge in interface SaslClient
Throws:
SaslException

isComplete

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

unwrap

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

wrap

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

getNegotiatedProperty

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

dispose

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


Licensed to the Apache Software Foundation