com.ibm.security.sasl.util
Class AbstractSaslImpl
- java.lang.Object
com.ibm.security.sasl.util.AbstractSaslImpl
- public abstract class AbstractSaslImpl
- extends java.lang.Object
Author:
Rosanna Lee
Field Summary
Modifier and Type | Field and Description |
---|---|
|
allQop
|
|
completed
|
|
HIGH_STRENGTH
|
|
integrity
|
|
INTEGRITY_ONLY_PROTECTION
|
|
logger
Logger for debug messages
|
|
LOW_STRENGTH
|
|
MAX_SEND_BUF
|
|
MEDIUM_STRENGTH
|
|
myClassName
|
|
NO_PROTECTION
|
|
privacy
|
|
PRIVACY_PROTECTION
|
|
qop
|
|
rawSendSize
|
|
recvMaxBufSize
|
|
sendMaxBufSize
|
|
strength
|
Constructor Summary
Modifier | Constructor and Description |
---|---|
|
AbstractSaslImpl(java.util.Map props,java.lang.String className)
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
combineMasks(byte[] in)
|
|
findPreferredMask(byte pref,byte[] in)
|
|
getNegotiatedProperty(java.lang.String propName)
Retrieves the negotiated property.
|
|
intToNetworkByteOrder(int num,byte[] buf,int start,int count)
Encodes an integer into 4 bytes in network byte order in the buffer
supplied.
|
|
isComplete()
Determines whether this mechanism has completed.
|
|
networkByteOrderToInt(byte[] buf,int start,int count)
Returns the integer represented by 4 bytes in network byte order.
|
|
parseQop(java.lang.String qop,java.lang.String[] saveTokens,boolean ignore)
|
|
traceOutput(java.lang.String srcClass,java.lang.String srcMethod,java.lang.String traceTag,byte[] output)
Outputs a byte array and converts
|
|
traceOutput(java.lang.String srcClass,java.lang.String srcMethod,java.lang.String traceTag,byte[] output,int offset,int len)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
logger
- protected static java.util.logging.Logger logger
Logger for debug messages
completed
- protected boolean completed
privacy
- protected boolean privacy
integrity
- protected boolean integrity
qop
- protected byte[] qop
allQop
- protected byte allQop
strength
- protected byte[] strength
sendMaxBufSize
- protected int sendMaxBufSize
recvMaxBufSize
- protected int recvMaxBufSize
rawSendSize
- protected int rawSendSize
myClassName
- protected java.lang.String myClassName
MAX_SEND_BUF
- protected static final java.lang.String MAX_SEND_BUF
See Also:
NO_PROTECTION
- protected static final byte NO_PROTECTION
See Also:
INTEGRITY_ONLY_PROTECTION
- protected static final byte INTEGRITY_ONLY_PROTECTION
See Also:
PRIVACY_PROTECTION
- protected static final byte PRIVACY_PROTECTION
See Also:
LOW_STRENGTH
- protected static final byte LOW_STRENGTH
See Also:
MEDIUM_STRENGTH
- protected static final byte MEDIUM_STRENGTH
See Also:
HIGH_STRENGTH
- protected static final byte HIGH_STRENGTH
See Also:
Constructor Detail
AbstractSaslImpl
- protected AbstractSaslImpl(java.util.Map props,
- java.lang.String className)
- throws SaslException
Throws:
Method Detail
isComplete
- public boolean isComplete()
Determines whether this mechanism has completed.
Returns:
true if has completed; false otherwise;
getNegotiatedProperty
- public java.lang.Object getNegotiatedProperty( java.lang.String propName)
Retrieves the negotiated property.
Throws:
SaslException
- if this authentication exchange has not completed combineMasks
- protected static final byte combineMasks( byte[] in)
findPreferredMask
- protected static final byte findPreferredMask( byte pref,
- byte[] in)
parseQop
- protected static final byte[] parseQop( java.lang.String qop,
- java.lang.String[] saveTokens,
- boolean ignore)
- throws SaslException
Throws:
traceOutput
- protected static final void traceOutput( java.lang.String srcClass,
- java.lang.String srcMethod,
- java.lang.String traceTag,
- byte[] output)
Outputs a byte array and converts
traceOutput
- protected static final void traceOutput( java.lang.String srcClass,
- java.lang.String srcMethod,
- java.lang.String traceTag,
- byte[] output,
- int offset,
- int len)
networkByteOrderToInt
- protected static final int networkByteOrderToInt( byte[] buf,
- int start,
- int count)
Returns the integer represented by 4 bytes in network byte order.
intToNetworkByteOrder
- 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.