APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.crypto.provider

pack-priv final Class SealedObjectForKeyProtector

extends SealedObject
Class Inheritance
Imports
jdk.internal.access.SharedSecrets, java.io.*, java.security.*, javax.crypto.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
SealedObjectForKeyProtector.DeserializationChecker

The filter for the content of a SealedObjectForKeyProtector.

Field Summary

Modifier and TypeField and Description
private static final String
KEY_SERIAL_FILTER

The InputStreamFilter for a Key object inside this SealedObject.

pack-priv static final long
Inherited from javax.crypto.SealedObject:
encodedParams

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv final Key
getKey(Cipher c, int maxLength)

pack-priv AlgorithmParameters
Inherited from javax.crypto.SealedObject:
getAlgorithmgetObjectgetObjectgetObject

Field Detail

KEY_SERIAL_FILTERback to summary
private static final String KEY_SERIAL_FILTER

The InputStreamFilter for a Key object inside this SealedObject. It can be either provided as a Security property or a system property (when provided as latter, it shadows the former). If the result of this filter is java.io.ObjectInputFilter.Status.UNDECIDED, the system level filter defined by jdk.serialFilter will be consulted. The value of this property uses the same format of jdk.serialFilter.

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides javax.crypto.SealedObject.serialVersionUID.

Annotations
@Serial

Constructor Detail

SealedObjectForKeyProtectorback to summary
pack-priv SealedObjectForKeyProtector(Serializable object, Cipher c) throws IOException, IllegalBlockSizeException
SealedObjectForKeyProtectorback to summary
pack-priv SealedObjectForKeyProtector(SealedObject so)

Method Detail

getKeyback to summary
pack-priv final Key getKey(Cipher c, int maxLength) throws IOException, ClassNotFoundException, IllegalBlockSizeException, BadPaddingException
getParametersback to summary
pack-priv AlgorithmParameters getParameters()
com.sun.crypto.provider back to summary

private Class SealedObjectForKeyProtector.DeserializationChecker

extends Object
implements ObjectInputFilter
Class Inheritance
  • java.lang.Object
  • com.sun.crypto.provider.SealedObjectForKeyProtector.DeserializationChecker
All Implemented Interfaces
java.io.ObjectInputFilter

The filter for the content of a SealedObjectForKeyProtector. First, the jceks.key.serialFilter will be consulted. If the result is UNDECIDED, the system level jdk.serialFilter will be consulted.

Field Summary

Modifier and TypeField and Description
private final int
private static final ObjectInputFilter

Constructor Summary

AccessConstructor and Description
private
DeserializationChecker(int maxLength)

Method Summary

Modifier and TypeMethod and Description
public ObjectInputFilter.Status
checkInput(ObjectInputFilter.FilterInfo info)

Implements java.io.ObjectInputFilter.checkInput.

Check the class, array length, number of object references, depth, stream size, and other available filtering information.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

maxLengthback to summary
private final int maxLength
OWN_FILTERback to summary
private static final ObjectInputFilter OWN_FILTER

Constructor Detail

DeserializationCheckerback to summary
private DeserializationChecker(int maxLength)

Method Detail

checkInputback to summary
public ObjectInputFilter.Status checkInput(ObjectInputFilter.FilterInfo info)

Implements java.io.ObjectInputFilter.checkInput.

Doc from java.io.ObjectInputFilter.checkInput.

Check the class, array length, number of object references, depth, stream size, and other available filtering information. Implementations of this method check the contents of the object graph being created during deserialization. The filter returns Status.ALLOWED, Status.REJECTED, or Status.UNDECIDED.

If filterInfo.serialClass() is non-null, there is a class to be checked. If serialClass() is null, there is no class and the info contains only metrics related to the depth of the graph being deserialized, the number of references, and the size of the stream read.

Annotations
@Override