W3cubDocs

/OpenJDK 21

Interface ObjectInputValidation

public interface ObjectInputValidation
Callback interface to allow validation of objects within a graph. Allows an object to be called when a complete graph of objects has been deserialized.
Since:
1.1
See Also:

Method Summary

Modifier and Type Method Description
void validateObject()
Validates the object.

Method Details

validateObject

void validateObject() throws InvalidObjectException
Validates the object.
Throws:
InvalidObjectException - If the object cannot validate itself.

© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/io/ObjectInputValidation.html