src/java.base/share/classes/javax/crypto/SealedObject.java
changeset 57950 4612a3cfb927
parent 53018 8bf9268df0e2
equal deleted inserted replaced
57945:e09c993ac476 57950:4612a3cfb927
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2018, 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
    91  * @since 1.4
    91  * @since 1.4
    92  */
    92  */
    93 
    93 
    94 public class SealedObject implements Serializable {
    94 public class SealedObject implements Serializable {
    95 
    95 
       
    96     @java.io.Serial
    96     static final long serialVersionUID = 4482838265551344752L;
    97     static final long serialVersionUID = 4482838265551344752L;
    97 
    98 
    98     /**
    99     /**
    99      * The serialized object contents in encrypted format.
   100      * The serialized object contents in encrypted format.
   100      *
   101      *
   421     /**
   422     /**
   422      * Restores the state of the SealedObject from a stream.
   423      * Restores the state of the SealedObject from a stream.
   423      * @param s the object input stream.
   424      * @param s the object input stream.
   424      * @exception NullPointerException if s is null.
   425      * @exception NullPointerException if s is null.
   425      */
   426      */
       
   427     @java.io.Serial
   426     private void readObject(java.io.ObjectInputStream s)
   428     private void readObject(java.io.ObjectInputStream s)
   427         throws java.io.IOException, ClassNotFoundException
   429         throws java.io.IOException, ClassNotFoundException
   428     {
   430     {
   429         s.defaultReadObject();
   431         s.defaultReadObject();
   430         if (encryptedContent != null)
   432         if (encryptedContent != null)