com.ibm.security.sasl.util

Class AbstractSaslImpl

  1. java.lang.Object
  2. extended bycom.ibm.security.sasl.util.AbstractSaslImpl

  1. public abstract class AbstractSaslImpl
  2. extends java.lang.Object
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.
Author:
Rosanna Lee

Field Summary

Modifier and Type Field and Description
  1. protected
  2. byte
allQop
  1. protected
  2. boolean
completed
  1. protected static
  2. byte
HIGH_STRENGTH
  1. protected
  2. boolean
integrity
  1. protected static
  2. byte
INTEGRITY_ONLY_PROTECTION
  1. protected static
  2. java.util.logging.Logger
logger
Logger for debug messages
  1. protected static
  2. byte
LOW_STRENGTH
  1. protected static
  2. java.lang.String
MAX_SEND_BUF
  1. protected static
  2. byte
MEDIUM_STRENGTH
  1. protected
  2. java.lang.String
myClassName
  1. protected static
  2. byte
NO_PROTECTION
  1. protected
  2. boolean
privacy
  1. protected static
  2. byte
PRIVACY_PROTECTION
  1. protected
  2. byte[]
qop
  1. protected
  2. int
rawSendSize
  1. protected
  2. int
recvMaxBufSize
  1. protected
  2. int
sendMaxBufSize
  1. protected
  2. byte[]
strength

Constructor Summary

Modifier Constructor and Description
  1. protected
AbstractSaslImpl(java.util.Map props,java.lang.String className)

Method Summary

Modifier and Type Method and Description
  1. protected static
  2. byte
combineMasks(byte[] in)
  1. protected static
  2. byte
findPreferredMask(byte pref,byte[] in)
  1. java.lang.Object
getNegotiatedProperty(java.lang.String propName)
Retrieves the negotiated property.
  1. protected static
  2. void
intToNetworkByteOrder(int num,byte[] buf,int start,int count)
Encodes an integer into 4 bytes in network byte order in the buffer supplied.
  1. boolean
isComplete()
Determines whether this mechanism has completed.
  1. protected static
  2. int
networkByteOrderToInt(byte[] buf,int start,int count)
Returns the integer represented by 4 bytes in network byte order.
  1. protected static
  2. byte[]
parseQop(java.lang.String qop,java.lang.String[] saveTokens,boolean ignore)
  1. protected static
  2. void
traceOutput(java.lang.String srcClass,java.lang.String srcMethod,java.lang.String traceTag,byte[] output)
Outputs a byte array and converts
  1. protected static
  2. void
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

  1. protected static java.util.logging.Logger logger
Logger for debug messages

completed

  1. protected boolean completed

privacy

  1. protected boolean privacy

integrity

  1. protected boolean integrity

qop

  1. protected byte[] qop

allQop

  1. protected byte allQop

strength

  1. protected byte[] strength

sendMaxBufSize

  1. protected int sendMaxBufSize

recvMaxBufSize

  1. protected int recvMaxBufSize

rawSendSize

  1. protected int rawSendSize

myClassName

  1. protected java.lang.String myClassName

MAX_SEND_BUF

  1. protected static final java.lang.String MAX_SEND_BUF
See Also:

NO_PROTECTION

  1. protected static final byte NO_PROTECTION
See Also:

INTEGRITY_ONLY_PROTECTION

  1. protected static final byte INTEGRITY_ONLY_PROTECTION
See Also:

PRIVACY_PROTECTION

  1. protected static final byte PRIVACY_PROTECTION
See Also:

LOW_STRENGTH

  1. protected static final byte LOW_STRENGTH
See Also:

MEDIUM_STRENGTH

  1. protected static final byte MEDIUM_STRENGTH
See Also:

HIGH_STRENGTH

  1. protected static final byte HIGH_STRENGTH
See Also:

Constructor Detail

AbstractSaslImpl

  1. protected AbstractSaslImpl(java.util.Map props,
  2. java.lang.String className)
  3. throws SaslException
Throws:

Method Detail

isComplete

  1. public boolean isComplete()
Determines whether this mechanism has completed.
Returns:
true if has completed; false otherwise;

getNegotiatedProperty

  1. public java.lang.Object getNegotiatedProperty( java.lang.String propName)
Retrieves the negotiated property.
Throws:
SaslException - if this authentication exchange has not completed

combineMasks

  1. protected static final byte combineMasks( byte[] in)

findPreferredMask

  1. protected static final byte findPreferredMask( byte pref,
  2. byte[] in)

parseQop

  1. protected static final byte[] parseQop( java.lang.String qop,
  2. java.lang.String[] saveTokens,
  3. boolean ignore)
  4. throws SaslException
Throws:

traceOutput

  1. protected static final void traceOutput( java.lang.String srcClass,
  2. java.lang.String srcMethod,
  3. java.lang.String traceTag,
  4. byte[] output)
Outputs a byte array and converts

traceOutput

  1. protected static final void traceOutput( java.lang.String srcClass,
  2. java.lang.String srcMethod,
  3. java.lang.String traceTag,
  4. byte[] output,
  5. int offset,
  6. int len)

networkByteOrderToInt

  1. protected static final int networkByteOrderToInt( byte[] buf,
  2. int start,
  3. int count)
Returns the integer represented by 4 bytes in network byte order.

intToNetworkByteOrder

  1. protected static final void intToNetworkByteOrder( int num,
  2. byte[] buf,
  3. int start,
  4. int count)
Encodes an integer into 4 bytes in network byte order in the buffer supplied.