-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 37672462 - [37669753->25.03] DefaultController and AuditingAuthor…
…izer classes do not properly print Subject principal names (merge main -> ce/main 114781) [git-p4: depot-paths = "//dev/coherence-ce/main/": change = 114782]
- Loading branch information
1 parent
e07f99a
commit 20f6461
Showing
3 changed files
with
99 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
prj/coherence-core/src/main/java/com/tangosol/net/security/PermissionException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* Copyright (c) 2000, 2025, Oracle and/or its affiliates. | ||
* | ||
* Licensed under the Universal Permissive License v 1.0 as shown at | ||
* https://oss.oracle.com/licenses/upl. | ||
*/ | ||
|
||
package com.tangosol.net.security; | ||
|
||
import java.security.Permission; | ||
|
||
public class PermissionException | ||
extends SecurityException | ||
{ | ||
@java.io.Serial | ||
private static final long serialVersionUID = 5138225684096988535L; | ||
/** | ||
* The permission that caused the exception to be thrown. | ||
*/ | ||
private Permission perm; | ||
|
||
/** | ||
* Constructs an {@code AccessControlException} with the | ||
* specified, detailed message. | ||
* | ||
* @param s the detail message. | ||
*/ | ||
public PermissionException(String s) | ||
{ | ||
super(s); | ||
} | ||
|
||
|
||
/** | ||
* Constructs an {@code AccessControlException} with the | ||
* specified, detailed message, and the requested permission that caused | ||
* the exception. | ||
* | ||
* @param s the detail message. | ||
* @param p the permission that caused the exception. | ||
*/ | ||
public PermissionException(String s, Permission p) | ||
{ | ||
super(s); | ||
perm = p; | ||
} | ||
|
||
/** | ||
* Gets the {@code Permission} object associated with this exception, or | ||
* {@code null} if there was no corresponding {@code Permission} object. | ||
* | ||
* @return the Permission object. | ||
*/ | ||
public Permission getPermission() | ||
{ | ||
return perm; | ||
} | ||
} |