equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.security.ntlm; |
26 package com.sun.security.ntlm; |
27 |
27 |
|
28 import sun.security.action.GetBooleanAction; |
|
29 |
28 import static com.sun.security.ntlm.Version.*; |
30 import static com.sun.security.ntlm.Version.*; |
29 import java.io.IOException; |
31 import java.io.IOException; |
30 import java.io.UnsupportedEncodingException; |
32 import java.io.UnsupportedEncodingException; |
31 import java.security.InvalidKeyException; |
33 import java.security.InvalidKeyException; |
32 import java.security.MessageDigest; |
34 import java.security.MessageDigest; |
53 private final SecretKeyFactory fac; |
55 private final SecretKeyFactory fac; |
54 private final Cipher cipher; |
56 private final Cipher cipher; |
55 private final MessageDigest md4; |
57 private final MessageDigest md4; |
56 private final Mac hmac; |
58 private final Mac hmac; |
57 private final MessageDigest md5; |
59 private final MessageDigest md5; |
58 private static final boolean DEBUG = |
60 private static final boolean DEBUG |
59 java.security.AccessController.doPrivileged( |
61 = GetBooleanAction.privilegedGetProperty("ntlm.debug"); |
60 new sun.security.action.GetBooleanAction("ntlm.debug")) |
|
61 .booleanValue(); |
|
62 |
62 |
63 final Version v; |
63 final Version v; |
64 |
64 |
65 final boolean writeLM; |
65 final boolean writeLM; |
66 final boolean writeNTLM; |
66 final boolean writeNTLM; |