mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8218021: Have jarsigner preserve posix permission attributes
Reviewed-by: weijun, lancea, alanb
This commit is contained in:
parent
dc63bf261b
commit
3d9bad16d1
14 changed files with 292 additions and 17 deletions
|
@ -35,21 +35,27 @@ package sun.security.util;
|
|||
public final class Event {
|
||||
private Event() {}
|
||||
|
||||
public enum ReporterCategory {
|
||||
CRLCHECK(),
|
||||
POSIXPERMS();
|
||||
|
||||
private Reporter reporter;
|
||||
}
|
||||
|
||||
public interface Reporter {
|
||||
public void handle(String type, Object... args);
|
||||
}
|
||||
|
||||
private static Reporter reporter;
|
||||
public static void setReportListener(Reporter re) {
|
||||
reporter = re;
|
||||
public static void setReportListener(ReporterCategory cat, Reporter re) {
|
||||
cat.reporter = re;
|
||||
}
|
||||
|
||||
public static void clearReportListener() {
|
||||
reporter = null;
|
||||
public static void clearReportListener(ReporterCategory cat) {
|
||||
cat.reporter = null;
|
||||
}
|
||||
|
||||
public static void report(String type, Object... args) {
|
||||
Reporter currentReporter = reporter;
|
||||
public static void report(ReporterCategory cat, String type, Object... args) {
|
||||
Reporter currentReporter = cat.reporter;
|
||||
|
||||
if (currentReporter != null) {
|
||||
currentReporter.handle(type, args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue