< prev index next >

src/java.base/share/classes/com/sun/crypto/provider/SealedObjectForKeyProtector.java

Print this page
rev 51958 : 8211122: Reduce the number of internal classes made accessible to jdk.unsupported
Reviewed-by: alanb, dfuchs, kvn


   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.crypto.provider;
  27 
  28 import jdk.internal.misc.SharedSecrets;
  29 
  30 import java.io.*;
  31 import java.security.*;
  32 import javax.crypto.*;
  33 
  34 final class SealedObjectForKeyProtector extends SealedObject {
  35 
  36     static final long serialVersionUID = -3650226485480866989L;
  37 
  38     /**
  39      * The InputStreamFilter for a Key object inside this SealedObject. It can
  40      * be either provided as a {@link Security} property or a system property
  41      * (when provided as latter, it shadows the former). If the result of this
  42      * filter is {@link java.io.ObjectInputFilter.Status.UNDECIDED}, the system
  43      * level filter defined by jdk.serialFilter will be consulted. The value
  44      * of this property uses the same format of jdk.serialFilter.
  45      */
  46     private static final String KEY_SERIAL_FILTER = "jceks.key.serialFilter";
  47 
  48     SealedObjectForKeyProtector(Serializable object, Cipher c)




   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.crypto.provider;
  27 
  28 import jdk.internal.access.SharedSecrets;
  29 
  30 import java.io.*;
  31 import java.security.*;
  32 import javax.crypto.*;
  33 
  34 final class SealedObjectForKeyProtector extends SealedObject {
  35 
  36     static final long serialVersionUID = -3650226485480866989L;
  37 
  38     /**
  39      * The InputStreamFilter for a Key object inside this SealedObject. It can
  40      * be either provided as a {@link Security} property or a system property
  41      * (when provided as latter, it shadows the former). If the result of this
  42      * filter is {@link java.io.ObjectInputFilter.Status.UNDECIDED}, the system
  43      * level filter defined by jdk.serialFilter will be consulted. The value
  44      * of this property uses the same format of jdk.serialFilter.
  45      */
  46     private static final String KEY_SERIAL_FILTER = "jceks.key.serialFilter";
  47 
  48     SealedObjectForKeyProtector(Serializable object, Cipher c)


< prev index next >