1 /* ************************************************************************** 2 * $OpenLDAP: /com/novell/sasl/client/ParsedDirective.java,v 1.1 2003/08/21 10:06:26 kkanil Exp $ 3 * 4 * Copyright (C) 2002 Novell, Inc. All Rights Reserved. 5 * 6 * THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND 7 * TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT 8 * TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS 9 * AVAILABLE AT HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE" 10 * IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION 11 * OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP 12 * PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT 13 * THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY. 14 ******************************************************************************/ 15 package com.novell.sasl.client; 16 17 /** 18 * Implements the ParsedDirective class which will be used in the 19 * DigestMD5SaslClient mechanism. 20 */ 21 class ParsedDirective 22 { 23 public static final int QUOTED_STRING_VALUE = 1; 24 public static final int TOKEN_VALUE = 2; 25 26 private int m_valueType; 27 private String m_name; 28 private String m_value; 29 30 ParsedDirective( 31 String name, 32 String value, 33 int type) 34 { 35 m_name = name; 36 m_value = value; 37 m_valueType = type; 38 } 39 40 String getValue() 41 { 42 return m_value; 43 } 44 45 String getName() 46 { 47 return m_name; 48 } 49 50 int getValueType() 51 { 52 return m_valueType; 53 } 54 55 } 56 57