aboutsummaryrefslogtreecommitdiff
path: root/src/com/novell/sasl/client/ParsedDirective.java
blob: 17bf70e04a08a04eb1591277a39ea34115df17c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* **************************************************************************
 * $OpenLDAP: /com/novell/sasl/client/ParsedDirective.java,v 1.1 2003/08/21 10:06:26 kkanil Exp $
 *
 * Copyright (C) 2002 Novell, Inc. All Rights Reserved.
 *
 * THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
 * TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT
 * TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS
 * AVAILABLE AT HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE"
 * IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION
 * OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP
 * PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT
 * THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
 ******************************************************************************/
package com.novell.sasl.client;

/**
 * Implements the ParsedDirective class which will be used in the
 * DigestMD5SaslClient mechanism.
 */
class ParsedDirective
{
    public static final int  QUOTED_STRING_VALUE = 1;
    public static final int  TOKEN_VALUE         = 2;

    private int     m_valueType;
    private String  m_name;
    private String  m_value;

    ParsedDirective(
        String  name,
        String  value,
        int     type)
    {
        m_name = name;
        m_value = value;
        m_valueType = type;
    }

    String getValue()
    {
        return m_value;
    }

    String getName()
    {
        return m_name;
    }

    int getValueType()
    {
        return m_valueType;
    }

}