Class Overview
The base class used by client and server implementations of SASL
mechanisms to process properties passed in the props argument
and strings with the same format (e.g., used in digest-md5).
Also contains utilities for doing int to network-byte-order
transformations.
Summary
Protected Methods |
final
static
byte
|
combineMasks(byte[] in)
|
final
static
byte
|
findPreferredMask(byte pref, byte[] in)
|
final
static
void
|
intToNetworkByteOrder(int num, byte[] buf, int start, int count)
Encodes an integer into 4 bytes in network byte order in the buffer
supplied.
|
final
static
int
|
networkByteOrderToInt(byte[] buf, int start, int count)
Returns the integer represented by 4 bytes in network byte order.
|
final
static
byte[]
|
parseQop(String qop, String[] saveTokens, boolean ignore)
|
final
static
void
|
traceOutput(String srcClass, String srcMethod, String traceTag, byte[] output, int offset, int len)
|
final
static
void
|
traceOutput(String srcClass, String srcMethod, String traceTag, byte[] output)
Outputs a byte array and converts
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Constants
protected
static
final
byte
HIGH_STRENGTH
Constant Value:
4
(0x00000004)
protected
static
final
byte
INTEGRITY_ONLY_PROTECTION
Constant Value:
2
(0x00000002)
protected
static
final
byte
LOW_STRENGTH
Constant Value:
1
(0x00000001)
protected
static
final
String
MAX_SEND_BUF
Constant Value:
"javax.security.sasl.sendmaxbuffer"
protected
static
final
byte
MEDIUM_STRENGTH
Constant Value:
2
(0x00000002)
protected
static
final
byte
NO_PROTECTION
Constant Value:
1
(0x00000001)
protected
static
final
byte
PRIVACY_PROTECTION
Constant Value:
4
(0x00000004)
Fields
protected
boolean
completed
protected
boolean
integrity
protected
static
final
Logger
logger
Logger for debug messages
protected
boolean
privacy
protected
int
rawSendSize
protected
int
recvMaxBufSize
protected
int
sendMaxBufSize
protected
byte[]
strength
Protected Constructors
protected
AbstractSaslImpl
(Map props, String className)
Public Methods
public
Object
getNegotiatedProperty
(String propName)
Retrieves the negotiated property.
public
boolean
isComplete
()
Determines whether this mechanism has completed.
Returns
- true if has completed; false otherwise;
Protected Methods
protected
static
final
byte
combineMasks
(byte[] in)
protected
static
final
byte
findPreferredMask
(byte pref, byte[] in)
protected
static
final
void
intToNetworkByteOrder
(int num, byte[] buf, int start, int count)
Encodes an integer into 4 bytes in network byte order in the buffer
supplied.
protected
static
final
int
networkByteOrderToInt
(byte[] buf, int start, int count)
Returns the integer represented by 4 bytes in network byte order.
protected
static
final
byte[]
parseQop
(String qop, String[] saveTokens, boolean ignore)
protected
static
final
void
traceOutput
(String srcClass, String srcMethod, String traceTag, byte[] output, int offset, int len)
protected
static
final
void
traceOutput
(String srcClass, String srcMethod, String traceTag, byte[] output)
Outputs a byte array and converts