abstract class AbstractSaslImpl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected byte |
allQop |
protected boolean |
completed |
private static byte[] |
DEFAULT_QOP |
private static byte[] |
DEFAULT_STRENGTH |
protected static byte |
HIGH_STRENGTH |
protected boolean |
integrity |
protected static byte |
INTEGRITY_ONLY_PROTECTION |
private static org.jboss.logging.Logger |
log |
protected static byte |
LOW_STRENGTH |
protected static java.lang.String |
MAX_SEND_BUF |
protected static byte |
MEDIUM_STRENGTH |
protected java.lang.String |
myClassName |
protected static byte |
NO_PROTECTION |
protected boolean |
privacy |
protected static byte |
PRIVACY_PROTECTION |
protected byte[] |
qop |
private static byte[] |
QOP_MASKS |
private static java.lang.String[] |
QOP_TOKENS |
protected int |
rawSendSize |
protected int |
recvMaxBufSize |
protected int |
sendMaxBufSize |
protected byte[] |
strength |
private static byte[] |
STRENGTH_MASKS |
private static java.lang.String[] |
STRENGTH_TOKENS |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSaslImpl(java.util.Map props,
java.lang.String className) |
| Modifier and Type | Method and Description |
|---|---|
protected static byte |
combineMasks(byte[] in) |
protected static byte |
findPreferredMask(byte pref,
byte[] in) |
java.lang.Object |
getNegotiatedProperty(java.lang.String propName)
Retrieves the negotiated property.
|
protected 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.
|
boolean |
isComplete()
Determines whether this mechanism has completed.
|
protected static int |
networkByteOrderToInt(byte[] buf,
int start,
int count)
Returns the integer represented by 4 bytes in network byte order.
|
private static byte[] |
parseProp(java.lang.String propName,
java.lang.String propVal,
java.lang.String[] vals,
byte[] masks,
java.lang.String[] tokens,
boolean ignore) |
private static byte[] |
parseQop(java.lang.String qop) |
protected static byte[] |
parseQop(java.lang.String qop,
java.lang.String[] saveTokens,
boolean ignore) |
private static byte[] |
parseStrength(java.lang.String strength) |
private static final org.jboss.logging.Logger log
protected boolean completed
protected boolean privacy
protected boolean integrity
protected byte[] qop
protected byte allQop
protected byte[] strength
protected int sendMaxBufSize
protected int recvMaxBufSize
protected int rawSendSize
protected java.lang.String myClassName
protected static final java.lang.String MAX_SEND_BUF
protected static final byte NO_PROTECTION
protected static final byte INTEGRITY_ONLY_PROTECTION
protected static final byte PRIVACY_PROTECTION
protected static final byte LOW_STRENGTH
protected static final byte MEDIUM_STRENGTH
protected static final byte HIGH_STRENGTH
private static final byte[] DEFAULT_QOP
private static final java.lang.String[] QOP_TOKENS
private static final byte[] QOP_MASKS
private static final byte[] DEFAULT_STRENGTH
private static final java.lang.String[] STRENGTH_TOKENS
private static final byte[] STRENGTH_MASKS
protected AbstractSaslImpl(java.util.Map props,
java.lang.String className)
throws javax.security.sasl.SaslException
javax.security.sasl.SaslExceptionpublic boolean isComplete()
public java.lang.Object getNegotiatedProperty(java.lang.String propName)
javax.security.sasl.SaslException - if this authentication exchange has not completedprotected static final byte combineMasks(byte[] in)
protected static final byte findPreferredMask(byte pref,
byte[] in)
private static final byte[] parseQop(java.lang.String qop)
throws javax.security.sasl.SaslException
javax.security.sasl.SaslExceptionprotected static final byte[] parseQop(java.lang.String qop,
java.lang.String[] saveTokens,
boolean ignore)
throws javax.security.sasl.SaslException
javax.security.sasl.SaslExceptionprivate static final byte[] parseStrength(java.lang.String strength)
throws javax.security.sasl.SaslException
javax.security.sasl.SaslExceptionprivate static final byte[] parseProp(java.lang.String propName,
java.lang.String propVal,
java.lang.String[] vals,
byte[] masks,
java.lang.String[] tokens,
boolean ignore)
throws javax.security.sasl.SaslException
javax.security.sasl.SaslExceptionprotected static final int networkByteOrderToInt(byte[] buf,
int start,
int count)
protected static final void intToNetworkByteOrder(int num,
byte[] buf,
int start,
int count)