public static <T> T deserialize(final byte[] inBytes, final Class<T> clazz) {
        val inputStream = new ByteArrayInputStream(inBytes);
        return deserialize(inputStream, clazz);
    }
Deserialize an object.

@param <T>     the type parameter
@param inBytes The bytes to be de-serialized
@param clazz   the clazz
@return the object
@since 5.0.0
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/SerializationUtils.java