All LDAP Classes
Internal LDAP Classes

com.novell.sasl.client
Class DigestChallenge

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

class DigestChallenge
extends java.lang.Object

Implements the DigestChallenge class which will be used by the DigestMD5SaslClient class


Field Summary
private static int CIPHER_3DES
           
private static int CIPHER_DES
           
private static int CIPHER_RC4
           
private static int CIPHER_RC4_40
           
private static int CIPHER_RC4_56
           
private static int CIPHER_RECOGNIZED_MASK
           
private static int CIPHER_UNRECOGNIZED
           
private  java.lang.String m_algorithm
           
private  java.lang.String m_characterSet
           
private  int m_cipherOptions
           
private  int m_maxBuf
           
private  java.lang.String m_nonce
           
private  int m_qop
           
private  java.util.ArrayList m_realms
           
private  boolean m_staleFlag
           
static int QOP_AUTH
           
static int QOP_AUTH_CONF
           
static int QOP_AUTH_INT
           
static int QOP_UNRECOGNIZED
           
 
Constructor Summary
(package private) DigestChallenge(byte[] challenge)
           
 
Method Summary
(package private)  void checkSemantics(DirectiveList dirList)
          Checks the semantics of the directives in the directive list as parsed from the digest challenge byte array.
 java.lang.String getAlgorithm()
           
 java.lang.String getCharacterSet()
           
 int getCipherOptions()
           
 int getMaxBuf()
           
 java.lang.String getNonce()
           
 int getQop()
          Return the quality-of-protection
 java.util.ArrayList getRealms()
          Return the list of the All the Realms
 boolean getStaleFlag()
           
(package private)  void handleAlgorithm(ParsedDirective pd)
          This function implements the semenatics of the charset directive.
(package private)  void handleCharset(ParsedDirective pd)
          This function implements the semenatics of the charset directive.
(package private)  void handleCipher(ParsedDirective pd)
          This function implements the semenatics of the cipher-opts directive directive.
(package private)  void handleMaxbuf(ParsedDirective pd)
          This function implements the semenatics of the Maxbuf directive.
(package private)  void handleNonce(ParsedDirective pd)
          This function implements the semenatics of the nonce directive.
(package private)  void handleQop(ParsedDirective pd)
          This function implements the semenatics of the qop (quality of protection) directive.
(package private)  void handleRealm(ParsedDirective pd)
          This function implements the semenatics of the realm directive.
(package private)  void handleStale(ParsedDirective pd)
          This function implements the semenatics of the stale directive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QOP_AUTH

public static final int QOP_AUTH
See Also:
Constant Field Values

QOP_AUTH_INT

public static final int QOP_AUTH_INT
See Also:
Constant Field Values

QOP_AUTH_CONF

public static final int QOP_AUTH_CONF
See Also:
Constant Field Values

QOP_UNRECOGNIZED

public static final int QOP_UNRECOGNIZED
See Also:
Constant Field Values

CIPHER_3DES

private static final int CIPHER_3DES
See Also:
Constant Field Values

CIPHER_DES

private static final int CIPHER_DES
See Also:
Constant Field Values

CIPHER_RC4_40

private static final int CIPHER_RC4_40
See Also:
Constant Field Values

CIPHER_RC4

private static final int CIPHER_RC4
See Also:
Constant Field Values

CIPHER_RC4_56

private static final int CIPHER_RC4_56
See Also:
Constant Field Values

CIPHER_UNRECOGNIZED

private static final int CIPHER_UNRECOGNIZED
See Also:
Constant Field Values

CIPHER_RECOGNIZED_MASK

private static final int CIPHER_RECOGNIZED_MASK
See Also:
Constant Field Values

m_realms

private java.util.ArrayList m_realms

m_nonce

private java.lang.String m_nonce

m_qop

private int m_qop

m_staleFlag

private boolean m_staleFlag

m_maxBuf

private int m_maxBuf

m_characterSet

private java.lang.String m_characterSet

m_algorithm

private java.lang.String m_algorithm

m_cipherOptions

private int m_cipherOptions
Constructor Detail

DigestChallenge

DigestChallenge(byte[] challenge)
          throws SaslException
Method Detail

checkSemantics

void checkSemantics(DirectiveList dirList)
              throws SaslException
Checks the semantics of the directives in the directive list as parsed from the digest challenge byte array.

Parameters:
dirList - the list of directives parsed from the digest challenge
Throws:
SaslException - If a semantic error occurs

handleNonce

void handleNonce(ParsedDirective pd)
           throws SaslException
This function implements the semenatics of the nonce directive.

Parameters:
pd - ParsedDirective
Throws:
SaslException - If an error occurs due to too many nonce values

handleRealm

void handleRealm(ParsedDirective pd)
This function implements the semenatics of the realm directive.

Parameters:
pd - ParsedDirective

handleQop

void handleQop(ParsedDirective pd)
         throws SaslException
This function implements the semenatics of the qop (quality of protection) directive. The value of the qop directive is as defined below: qop-options = "qop" "=" <"> qop-list <"> qop-list = 1#qop-value qop-value = "auth" | "auth-int" | "auth-conf" | token

Parameters:
pd - ParsedDirective
Throws:
SaslException - If an error occurs due to too many qop directives

handleMaxbuf

void handleMaxbuf(ParsedDirective pd)
            throws SaslException
This function implements the semenatics of the Maxbuf directive. the value is defined as: 1*DIGIT

Parameters:
pd - ParsedDirective
Throws:
SaslException - If an error occur

handleCharset

void handleCharset(ParsedDirective pd)
             throws SaslException
This function implements the semenatics of the charset directive. the value is defined as: 1*DIGIT

Parameters:
pd - ParsedDirective
Throws:
SaslException - If an error occurs dur to too many charset directives or Invalid character encoding directive

handleAlgorithm

void handleAlgorithm(ParsedDirective pd)
               throws SaslException
This function implements the semenatics of the charset directive. the value is defined as: 1*DIGIT

Parameters:
pd - ParsedDirective
Throws:
SaslException - If an error occurs due to too many algorith directive or Invalid algorithm directive value

handleCipher

void handleCipher(ParsedDirective pd)
            throws SaslException
This function implements the semenatics of the cipher-opts directive directive. The value of the qop directive is as defined below: qop-options = "qop" "=" <"> qop-list <"> qop-list = 1#qop-value qop-value = "auth" | "auth-int" | "auth-conf" | token

Parameters:
pd - ParsedDirective
Throws:
SaslException - If an error occurs due to Too many cipher directives

handleStale

void handleStale(ParsedDirective pd)
           throws SaslException
This function implements the semenatics of the stale directive.

Parameters:
pd - ParsedDirective
Throws:
SaslException - If an error occurs due to Too many stale directives or Invalid stale directive value

getRealms

public java.util.ArrayList getRealms()
Return the list of the All the Realms

Returns:
List of all the realms

getNonce

public java.lang.String getNonce()
Returns:
Returns the Nonce

getQop

public int getQop()
Return the quality-of-protection

Returns:
The quality-of-protection

getStaleFlag

public boolean getStaleFlag()
Returns:
The state of the Staleflag

getMaxBuf

public int getMaxBuf()
Returns:
The Maximum Buffer value

getCharacterSet

public java.lang.String getCharacterSet()
Returns:
character set values as string

getAlgorithm

public java.lang.String getAlgorithm()
Returns:
The String value of the algorithm

getCipherOptions

public int getCipherOptions()
Returns:
The cipher options

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