equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2019, 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 |
33 public class NTSystem { |
33 public class NTSystem { |
34 |
34 |
35 private native void getCurrent(boolean debug); |
35 private native void getCurrent(boolean debug); |
36 private native long getImpersonationToken0(); |
36 private native long getImpersonationToken0(); |
37 |
37 |
|
38 // Warning: the next 6 fields are used by nt.c |
38 private String userName; |
39 private String userName; |
39 private String domain; |
40 private String domain; |
40 private String domainSID; |
41 private String domainSID; |
41 private String userSID; |
42 private String userSID; |
42 private String[] groupIDs; |
43 private String[] groupIDs; |
43 private String primaryGroupID; |
44 private String primaryGroupID; |
|
45 |
44 private long impersonationToken; |
46 private long impersonationToken; |
45 |
47 |
46 /** |
48 /** |
47 * Instantiate an {@code NTSystem} and load |
49 * Instantiate an {@code NTSystem} and load |
48 * the native library to access the underlying system information. |
50 * the native library to access the underlying system information. |