1 /*
2 * Copyright 2024 Michael Osipov
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package net.sf.michaelo.tomcat.pac;
17
18 /**
19 * A class representing the <a href=
20 * "https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-pac/40526584-1565-4fb1-97b7-eb38fd880595">{@code GROUP_MEMBERSHIP}</a>
21 * structure from MS-PAC.
22 */
23 public class GroupMembership {
24
25 private final long relativeId;
26 private final long attributes;
27
28 public GroupMembership(long relativeId, long attributes) {
29 this.relativeId = relativeId;
30 this.attributes = attributes;
31 }
32
33 public long getRelativeId() {
34 return relativeId;
35 }
36
37 public long getAttributes() {
38 return attributes;
39 }
40
41 @Override
42 public String toString() {
43 return String.format("GroupMembership[relativeId=%d, attributes=0x%08X]", relativeId, attributes);
44 }
45
46 }