equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 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 |
160 * with the provided {@code DomainCombiner}. |
160 * with the provided {@code DomainCombiner}. |
161 * |
161 * |
162 * @param combiner the {@code DomainCombiner} to be associated |
162 * @param combiner the {@code DomainCombiner} to be associated |
163 * with the provided {@code AccessControlContext}. |
163 * with the provided {@code AccessControlContext}. |
164 * |
164 * |
165 * @exception NullPointerException if the provided |
165 * @throws NullPointerException if the provided |
166 * {@code context} is {@code null}. |
166 * {@code context} is {@code null}. |
167 * |
167 * |
168 * @exception SecurityException if a security manager is installed and the |
168 * @throws SecurityException if a security manager is installed and the |
169 * caller does not have the "createAccessControlContext" |
169 * caller does not have the "createAccessControlContext" |
170 * {@link SecurityPermission} |
170 * {@link SecurityPermission} |
171 * @since 1.3 |
171 * @since 1.3 |
172 */ |
172 */ |
173 public AccessControlContext(AccessControlContext acc, |
173 public AccessControlContext(AccessControlContext acc, |
342 * |
342 * |
343 * @return the {@code DomainCombiner} associated with this |
343 * @return the {@code DomainCombiner} associated with this |
344 * {@code AccessControlContext}, or {@code null} |
344 * {@code AccessControlContext}, or {@code null} |
345 * if there is none. |
345 * if there is none. |
346 * |
346 * |
347 * @exception SecurityException if a security manager is installed and |
347 * @throws SecurityException if a security manager is installed and |
348 * the caller does not have the "getDomainCombiner" |
348 * the caller does not have the "getDomainCombiner" |
349 * {@link SecurityPermission} |
349 * {@link SecurityPermission} |
350 * @since 1.3 |
350 * @since 1.3 |
351 */ |
351 */ |
352 public DomainCombiner getDomainCombiner() { |
352 public DomainCombiner getDomainCombiner() { |
381 * This method quietly returns if the access request |
381 * This method quietly returns if the access request |
382 * is permitted, or throws a suitable AccessControlException otherwise. |
382 * is permitted, or throws a suitable AccessControlException otherwise. |
383 * |
383 * |
384 * @param perm the requested permission. |
384 * @param perm the requested permission. |
385 * |
385 * |
386 * @exception AccessControlException if the specified permission |
386 * @throws AccessControlException if the specified permission |
387 * is not permitted, based on the current security policy and the |
387 * is not permitted, based on the current security policy and the |
388 * context encapsulated by this object. |
388 * context encapsulated by this object. |
389 * @exception NullPointerException if the permission to check for is null. |
389 * @throws NullPointerException if the permission to check for is null. |
390 */ |
390 */ |
391 public void checkPermission(Permission perm) |
391 public void checkPermission(Permission perm) |
392 throws AccessControlException |
392 throws AccessControlException |
393 { |
393 { |
394 boolean dumpDebug = false; |
394 boolean dumpDebug = false; |