KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > filesys > server > auth > ntlm > NTLM


1 /*
2  * Copyright (C) 2006 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.filesys.server.auth.ntlm;
18
19 /**
20  * NTLM Constants Class
21  *
22  * @author GKSpencer
23  */

24 public class NTLM
25 {
26     // Signature
27

28     public static final byte[] Signature = "NTLMSSP\u0000".getBytes();
29     
30     // Message types
31

32     public static final int Type1 = 1;
33     public static final int Type2 = 2;
34     public static final int Type3 = 3;
35     
36     // NTLM flags
37

38     public static final int FlagNegotiateUnicode = 0x00000001;
39     public static final int FlagNegotiateOEM = 0x00000002;
40     public static final int FlagRequestTarget = 0x00000004;
41     public static final int FlagNegotiateSign = 0x00000010;
42     public static final int FlagNegotiateSeal = 0x00000020;
43     public static final int FlagDatagramStyle = 0x00000040;
44     public static final int FlagLanManKey = 0x00000080;
45     public static final int FlagNegotiateNTLM = 0x00000200;
46     public static final int FlagDomainSupplied = 0x00001000;
47     public static final int FlagWorkstationSupplied = 0x00002000;
48     public static final int FlagLocalCall = 0x00004000;
49     public static final int FlagAlwaysSign = 0x00008000;
50     public static final int FlagTypeDomain = 0x00010000;
51     public static final int FlagTypeServer = 0x00020000;
52     public static final int FlagTypeShare = 0x00040000;
53     public static final int FlagNTLM2Key = 0x00080000;
54     public static final int FlagTargetInfo = 0x00800000;
55     public static final int Flag128Bit = 0x20000000;
56     public static final int FlagKeyExchange = 0x40000000;
57     public static final int Flag56Bit = 0x80000000;
58
59     // Target information types
60

61     public static final int TargetServer = 0x0001;
62     public static final int TargetDomain = 0x0002;
63     public static final int TargetFullDNS = 0x0003;
64     public static final int TargetDNSDomain = 0x0004;
65 }
66
Popular Tags