equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2016, 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 |
31 import java.security.PrivilegedAction; |
31 import java.security.PrivilegedAction; |
32 import java.security.Permission; |
32 import java.security.Permission; |
33 import java.security.BasicPermission; |
33 import java.security.BasicPermission; |
34 import java.security.SecurityPermission; |
34 import java.security.SecurityPermission; |
35 import java.security.AllPermission; |
35 import java.security.AllPermission; |
|
36 import sun.security.action.GetPropertyAction; |
36 |
37 |
37 /** |
38 /** |
38 * Permission constants and string constants used to create permissions |
39 * Permission constants and string constants used to create permissions |
39 * used throughout the JDK. |
40 * used throughout the JDK. |
40 */ |
41 */ |
143 new SecurityPermission ("getPolicy"); |
144 new SecurityPermission ("getPolicy"); |
144 |
145 |
145 // java.lang.SecurityManager |
146 // java.lang.SecurityManager |
146 public static final SocketPermission LOCAL_LISTEN_PERMISSION = |
147 public static final SocketPermission LOCAL_LISTEN_PERMISSION = |
147 new SocketPermission("localhost:0", SOCKET_LISTEN_ACTION); |
148 new SocketPermission("localhost:0", SOCKET_LISTEN_ACTION); |
|
149 |
|
150 public static final String PROVIDER_VER = |
|
151 GetPropertyAction.privilegedGetProperty("java.specification.version"); |
148 } |
152 } |