public abstract class

AbstractSaslImpl

extends Object
java.lang.Object
   ↳ com.sun.security.sasl.util.AbstractSaslImpl

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

Constants
byte HIGH_STRENGTH
byte INTEGRITY_ONLY_PROTECTION
byte LOW_STRENGTH
String MAX_SEND_BUF
byte MEDIUM_STRENGTH
byte NO_PROTECTION
byte PRIVACY_PROTECTION
Fields
protected byte allQop
protected boolean completed
protected boolean integrity
protected static final Logger logger Logger for debug messages
protected String myClassName
protected boolean privacy
protected byte[] qop
protected int rawSendSize
protected int recvMaxBufSize
protected int sendMaxBufSize
protected byte[] strength
Protected Constructors
AbstractSaslImpl(Map props, String className)
Public Methods
Object getNegotiatedProperty(String propName)
Retrieves the negotiated property.
boolean isComplete()
Determines whether this mechanism has completed.
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

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 byte allQop

protected boolean completed

protected boolean integrity

protected static final Logger logger

Logger for debug messages

protected String myClassName

protected boolean privacy

protected byte[] qop

protected int rawSendSize

protected int recvMaxBufSize

protected int sendMaxBufSize

protected byte[] strength

Protected Constructors

protected AbstractSaslImpl (Map props, String className)

Throws
SaslException

Public Methods

public Object getNegotiatedProperty (String propName)

Retrieves the negotiated property.

Throws
SaslException if this authentication exchange has not completed

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)

Throws
SaslException

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