public static <T extends Serializable> T decodeAndDeserializeObject(final byte[] object,
                                                                        final DecodableCipher cipher,
                                                                        final Class<T> type,
                                                                        final Object[] parameters) {
        val decoded = (byte[]) cipher.decode(object, parameters);
        return deserializeAndCheckObject(decoded, type);
    }
Decode and serialize object.

@param <T>        the type parameter
@param object     the object
@param cipher     the cipher
@param type       the type
@param parameters the parameters
@return the t
@since 4.2
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/SerializationUtils.java