All LDAP Classes
Internal LDAP Classes

com.novell.sasl.client
Class DirectiveList

java.lang.Object
  extended bycom.novell.sasl.client.DirectiveList

class DirectiveList
extends java.lang.Object

Implements the DirectiveList class whihc will be used by the DigestMD5SaslClient class


Field Summary
private  java.lang.String m_curName
           
private  int m_curPos
           
private  java.util.ArrayList m_directiveList
           
private  java.lang.String m_directives
           
private  int m_errorPos
           
private  int m_scanStart
           
private  int m_state
           
private static int STATE_LOOKING_FOR_COMMA
           
private static int STATE_LOOKING_FOR_DIRECTIVE
           
private static int STATE_LOOKING_FOR_EQUALS
           
private static int STATE_LOOKING_FOR_FIRST_DIRECTIVE
           
private static int STATE_LOOKING_FOR_VALUE
           
private static int STATE_NO_UTF8_SUPPORT
           
private static int STATE_SCANNING_NAME
           
private static int STATE_SCANNING_QUOTED_STRING_VALUE
           
private static int STATE_SCANNING_TOKEN_VALUE
           
 
Constructor Summary
(package private) DirectiveList(byte[] directives)
          Constructs a new DirectiveList.
 
Method Summary
(package private)  void addDirective(java.lang.String name, boolean haveQuotedPair)
          This function creates a directive record and adds it to the list, the value will be added later after it is parsed.
(package private)  java.util.Iterator getIterator()
          Returns the List iterator.
(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)  void parseDirectives()
          This function takes a US-ASCII character string containing a list of comma separated directives, and parses the string into the individual directives and their values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_LOOKING_FOR_FIRST_DIRECTIVE

private static final int STATE_LOOKING_FOR_FIRST_DIRECTIVE
See Also:
Constant Field Values

STATE_LOOKING_FOR_DIRECTIVE

private static final int STATE_LOOKING_FOR_DIRECTIVE
See Also:
Constant Field Values

STATE_SCANNING_NAME

private static final int STATE_SCANNING_NAME
See Also:
Constant Field Values

STATE_LOOKING_FOR_EQUALS

private static final int STATE_LOOKING_FOR_EQUALS
See Also:
Constant Field Values

STATE_LOOKING_FOR_VALUE

private static final int STATE_LOOKING_FOR_VALUE
See Also:
Constant Field Values

STATE_LOOKING_FOR_COMMA

private static final int STATE_LOOKING_FOR_COMMA
See Also:
Constant Field Values

STATE_SCANNING_QUOTED_STRING_VALUE

private static final int STATE_SCANNING_QUOTED_STRING_VALUE
See Also:
Constant Field Values

STATE_SCANNING_TOKEN_VALUE

private static final int STATE_SCANNING_TOKEN_VALUE
See Also:
Constant Field Values

STATE_NO_UTF8_SUPPORT

private static final int STATE_NO_UTF8_SUPPORT
See Also:
Constant Field Values

m_curPos

private int m_curPos

m_errorPos

private int m_errorPos

m_directives

private java.lang.String m_directives

m_state

private int m_state

m_directiveList

private java.util.ArrayList m_directiveList

m_curName

private java.lang.String m_curName

m_scanStart

private int m_scanStart
Constructor Detail

DirectiveList

DirectiveList(byte[] directives)
Constructs a new DirectiveList.

Method Detail

parseDirectives

void parseDirectives()
               throws SaslException
This function takes a US-ASCII character string containing a list of comma separated directives, and parses the string into the individual directives and their values. A directive consists of a token specifying the directive name followed by an equal sign (=) and the directive value. The value is either a token or a quoted string

Throws:
SaslException - If an error Occurs

isValidTokenChar

boolean isValidTokenChar(char c)
This function returns TRUE if the character is a valid token character. token = 1* separators = "(" | ")" | "<" | ">" | "@" | "," | ";" | ":" | "\" | <"> | "/" | "[" | "]" | "?" | "=" | "{" | "}" | SP | HT CTL = CHAR =

Parameters:
c - character to be tested
Returns:
Returns TRUE if the character is a valid token character.

isWhiteSpace

boolean isWhiteSpace(char c)
This function returns TRUE if the character is linear white space (LWS). LWS = [CRLF] 1*( SP | HT )

Parameters:
c - Input charcter to be tested
Returns:
Returns TRUE if the character is linear white space (LWS)

addDirective

void addDirective(java.lang.String name,
                  boolean haveQuotedPair)
This function creates a directive record and adds it to the list, the value will be added later after it is parsed.

Parameters:
name - Name
haveQuotedPair - true if quoted pair is there else false

getIterator

java.util.Iterator getIterator()
Returns the List iterator.

Returns:
Returns the Iterator Object for the List.

All LDAP Classes
Internal LDAP Classes

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000