|
All LDAP Classes Internal LDAP Classes |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.sasl.client.TokenParser
The TokenParser class will parse individual tokens from a list of tokens that are a directive value for a DigestMD5 authentication.The tokens are separated commas.
Field Summary | |
private int |
m_curPos
|
private int |
m_scanStart
|
private int |
m_state
|
private java.lang.String |
m_tokens
|
private static int |
STATE_DONE
|
private static int |
STATE_LOOKING_FOR_COMMA
|
private static int |
STATE_LOOKING_FOR_FIRST_TOKEN
|
private static int |
STATE_LOOKING_FOR_TOKEN
|
private static int |
STATE_PARSING_ERROR
|
private static int |
STATE_SCANNING_TOKEN
|
Constructor Summary | |
(package private) |
TokenParser(java.lang.String tokens)
|
Method Summary | |
(package private) boolean |
isValidTokenChar(char c)
This function returns TRUE if the character is a valid token character. |
(package private) boolean |
isWhiteSpace(char c)
This function returns TRUE if the character is linear white space (LWS). |
(package private) java.lang.String |
parseToken()
This function parses the next token from the tokens string and returns it as a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int STATE_LOOKING_FOR_FIRST_TOKEN
private static final int STATE_LOOKING_FOR_TOKEN
private static final int STATE_SCANNING_TOKEN
private static final int STATE_LOOKING_FOR_COMMA
private static final int STATE_PARSING_ERROR
private static final int STATE_DONE
private int m_curPos
private int m_scanStart
private int m_state
private java.lang.String m_tokens
Constructor Detail |
TokenParser(java.lang.String tokens)
Method Detail |
java.lang.String parseToken() throws SaslException
SASLException
- if an error occurs while parsing
SaslException
boolean isValidTokenChar(char c)
c
- character to be validated
boolean isWhiteSpace(char c)
c
- character to be validated
|
All LDAP Classes Internal LDAP Classes |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |