src/java.base/share/classes/java/security/UnresolvedPermission.java
changeset 57950 4612a3cfb927
parent 47418 6993f9f1ff83
equal deleted inserted replaced
57945:e09c993ac476 57950:4612a3cfb927
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2017, 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
   105 
   105 
   106 public final class UnresolvedPermission extends Permission
   106 public final class UnresolvedPermission extends Permission
   107 implements java.io.Serializable
   107 implements java.io.Serializable
   108 {
   108 {
   109 
   109 
       
   110     @java.io.Serial
   110     private static final long serialVersionUID = -4821973115467008846L;
   111     private static final long serialVersionUID = -4821973115467008846L;
   111 
   112 
   112     private static final sun.security.util.Debug debug =
   113     private static final sun.security.util.Debug debug =
   113         sun.security.util.Debug.getInstance
   114         sun.security.util.Debug.getInstance
   114         ("policy,access", "UnresolvedPermission");
   115         ("policy,access", "UnresolvedPermission");
   519      * denoting the certificate type, followed by an
   520      * denoting the certificate type, followed by an
   520      * {@code int} specifying the length of the certificate encoding,
   521      * {@code int} specifying the length of the certificate encoding,
   521      * followed by the certificate encoding itself which is written out as an
   522      * followed by the certificate encoding itself which is written out as an
   522      * array of bytes.
   523      * array of bytes.
   523      */
   524      */
       
   525     @java.io.Serial
   524     private void writeObject(java.io.ObjectOutputStream oos)
   526     private void writeObject(java.io.ObjectOutputStream oos)
   525         throws IOException
   527         throws IOException
   526     {
   528     {
   527         oos.defaultWriteObject();
   529         oos.defaultWriteObject();
   528 
   530 
   547     }
   549     }
   548 
   550 
   549     /**
   551     /**
   550      * Restores this object from a stream (i.e., deserializes it).
   552      * Restores this object from a stream (i.e., deserializes it).
   551      */
   553      */
       
   554     @java.io.Serial
   552     private void readObject(java.io.ObjectInputStream ois)
   555     private void readObject(java.io.ObjectInputStream ois)
   553         throws IOException, ClassNotFoundException
   556         throws IOException, ClassNotFoundException
   554     {
   557     {
   555         CertificateFactory cf;
   558         CertificateFactory cf;
   556         Hashtable<String, CertificateFactory> cfs = null;
   559         Hashtable<String, CertificateFactory> cfs = null;