KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jcifs > ntlmssp > NtlmFlags


1 /* jcifs smb client library in Java
2  * Copyright (C) 2002 "Michael B. Allen" <jcifs at samba dot org>
3  * "Eric Glass" <jcifs at samba dot org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */

19
20 package jcifs.ntlmssp;
21
22 /**
23  * Flags used during negotiation of NTLMSSP authentication.
24  */

25 public interface NtlmFlags {
26
27     /**
28     * Indicates whether Unicode strings are supported or used.
29     */

30     public static final int NTLMSSP_NEGOTIATE_UNICODE = 0x00000001;
31
32     /**
33     * Indicates whether OEM strings are supported or used.
34     */

35     public static final int NTLMSSP_NEGOTIATE_OEM = 0x00000002;
36
37     /**
38     * Indicates whether the authentication target is requested from
39     * the server.
40     */

41     public static final int NTLMSSP_REQUEST_TARGET = 0x00000004;
42
43     /**
44     * Specifies that communication across the authenticated channel
45     * should carry a digital signature (message integrity).
46     */

47     public static final int NTLMSSP_NEGOTIATE_SIGN = 0x00000010;
48
49     /**
50     * Specifies that communication across the authenticated channel
51     * should be encrypted (message confidentiality).
52     */

53     public static final int NTLMSSP_NEGOTIATE_SEAL = 0x00000020;
54
55     /**
56     * Indicates datagram authentication.
57     */

58     public static final int NTLMSSP_NEGOTIATE_DATAGRAM_STYLE = 0x00000040;
59
60     /**
61     * Indicates that the LAN Manager session key should be used for
62     * signing and sealing authenticated communication.
63     */

64     public static final int NTLMSSP_NEGOTIATE_LM_KEY = 0x00000080;
65
66     public static final int NTLMSSP_NEGOTIATE_NETWARE = 0x00000100;
67
68     /**
69     * Indicates support for NTLM authentication.
70     */

71     public static final int NTLMSSP_NEGOTIATE_NTLM = 0x00000200;
72
73     /**
74     * Indicates whether the OEM-formatted domain name in which the
75     * client workstation has membership is supplied in the Type-1 message.
76     * This is used in the negotation of local authentication.
77     */

78     public static final int NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED =
79             0x00001000;
80
81     /**
82     * Indicates whether the OEM-formatted workstation name is supplied
83     * in the Type-1 message. This is used in the negotiation of local
84     * authentication.
85     */

86     public static final int NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED =
87             0x00002000;
88
89     /**
90     * Sent by the server to indicate that the server and client are
91     * on the same machine. This implies that the server will include
92     * a local security context handle in the Type 2 message, for
93     * use in local authentication.
94     */

95     public static final int NTLMSSP_NEGOTIATE_LOCAL_CALL = 0x00004000;
96
97     /**
98     * Indicates that authenticated communication between the client
99     * and server should carry a "dummy" digital signature.
100     */

101     public static final int NTLMSSP_NEGOTIATE_ALWAYS_SIGN = 0x00008000;
102
103     /**
104     * Sent by the server in the Type 2 message to indicate that the
105     * target authentication realm is a domain.
106     */

107     public static final int NTLMSSP_TARGET_TYPE_DOMAIN = 0x00010000;
108
109     /**
110     * Sent by the server in the Type 2 message to indicate that the
111     * target authentication realm is a server.
112     */

113     public static final int NTLMSSP_TARGET_TYPE_SERVER = 0x00020000;
114
115     /**
116     * Sent by the server in the Type 2 message to indicate that the
117     * target authentication realm is a share (presumably for share-level
118     * authentication).
119     */

120     public static final int NTLMSSP_TARGET_TYPE_SHARE = 0x00040000;
121
122     /**
123     * Indicates that the NTLM2 signing and sealing scheme should be used
124     * for protecting authenticated communications. This refers to a
125     * particular session security scheme, and is not related to the use
126     * of NTLMv2 authentication.
127     */

128     public static final int NTLMSSP_NEGOTIATE_NTLM2 = 0x00080000;
129
130     public static final int NTLMSSP_REQUEST_INIT_RESPONSE = 0x00100000;
131
132     public static final int NTLMSSP_REQUEST_ACCEPT_RESPONSE = 0x00200000;
133
134     public static final int NTLMSSP_REQUEST_NON_NT_SESSION_KEY = 0x00400000;
135
136     /**
137     * Sent by the server in the Type 2 message to indicate that it is
138     * including a Target Information block in the message. The Target
139     * Information block is used in the calculation of the NTLMv2 response.
140     */

141     public static final int NTLMSSP_NEGOTIATE_TARGET_INFO = 0x00800000;
142
143     /**
144     * Indicates that 128-bit encryption is supported.
145     */

146     public static final int NTLMSSP_NEGOTIATE_128 = 0x20000000;
147
148     public static final int NTLMSSP_NEGOTIATE_KEY_EXCH = 0x40000000;
149
150     /**
151     * Indicates that 56-bit encryption is supported.
152     */

153     public static final int NTLMSSP_NEGOTIATE_56 = 0x80000000;
154
155 }
156
Popular Tags