equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 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 |
29 * Copyright 1997 The Open Group Research Institute. All rights reserved. |
29 * Copyright 1997 The Open Group Research Institute. All rights reserved. |
30 */ |
30 */ |
31 |
31 |
32 package sun.security.krb5; |
32 package sun.security.krb5; |
33 |
33 |
|
34 import sun.security.action.GetBooleanAction; |
34 import sun.security.krb5.internal.Krb5; |
35 import sun.security.krb5.internal.Krb5; |
35 import sun.security.util.*; |
36 import sun.security.util.*; |
36 import java.io.IOException; |
37 import java.io.IOException; |
37 import java.util.*; |
38 import java.util.*; |
38 |
39 |
45 * |
46 * |
46 * This class is immutable. |
47 * This class is immutable. |
47 */ |
48 */ |
48 public class Realm implements Cloneable { |
49 public class Realm implements Cloneable { |
49 |
50 |
50 public static final boolean AUTODEDUCEREALM = |
51 public static final boolean AUTODEDUCEREALM = GetBooleanAction |
51 java.security.AccessController.doPrivileged( |
52 .privilegedGetProperty("sun.security.krb5.autodeducerealm"); |
52 new sun.security.action.GetBooleanAction( |
|
53 "sun.security.krb5.autodeducerealm")); |
|
54 |
53 |
55 private final String realm; // not null nor empty |
54 private final String realm; // not null nor empty |
56 |
55 |
57 public Realm(String name) throws RealmException { |
56 public Realm(String name) throws RealmException { |
58 realm = parseRealm(name); |
57 realm = parseRealm(name); |