org.apache.qpid.client.security.amqplain
Class AmqPlainSaslClient
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MECHANISM
public static final String MECHANISM
- The name of this mechanism
- See Also:
- Constant Field Values
AmqPlainSaslClient
public AmqPlainSaslClient(CallbackHandler cbh)
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