src/java.base/share/classes/javax/crypto/CryptoAllPermission.java
changeset 57950 4612a3cfb927
parent 47216 71c04702a3d5
equal deleted inserted replaced
57945:e09c993ac476 57950:4612a3cfb927
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 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
    41  * @since 1.4
    41  * @since 1.4
    42  */
    42  */
    43 
    43 
    44 final class CryptoAllPermission extends CryptoPermission {
    44 final class CryptoAllPermission extends CryptoPermission {
    45 
    45 
       
    46     @java.io.Serial
    46     private static final long serialVersionUID = -5066513634293192112L;
    47     private static final long serialVersionUID = -5066513634293192112L;
    47 
    48 
    48     // This class is similar to java.security.AllPermission.
    49     // This class is similar to java.security.AllPermission.
    49     static final String ALG_NAME = "CryptoAllPermission";
    50     static final String ALG_NAME = "CryptoAllPermission";
    50     static final CryptoAllPermission INSTANCE =
    51     static final CryptoAllPermission INSTANCE =
   114  */
   115  */
   115 final class CryptoAllPermissionCollection extends PermissionCollection
   116 final class CryptoAllPermissionCollection extends PermissionCollection
   116     implements java.io.Serializable
   117     implements java.io.Serializable
   117 {
   118 {
   118 
   119 
       
   120     @java.io.Serial
   119     private static final long serialVersionUID = 7450076868380144072L;
   121     private static final long serialVersionUID = 7450076868380144072L;
   120 
   122 
   121     // true if a CryptoAllPermission has been added
   123     // true if a CryptoAllPermission has been added
   122     private boolean all_allowed;
   124     private boolean all_allowed;
   123 
   125