org.cesecore.internal.UpgradeableDataHashMap Maven / Gradle / Ivy
/*************************************************************************
* *
* CESeCore: CE Security Core *
* *
* This software is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2.1 of the License, or any later version. *
* *
* See terms of license at gnu.org. *
* *
*************************************************************************/
package org.cesecore.internal;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import org.cesecore.util.Base64GetHashMap;
/**
* UpgradeableDataHashMap is an class implementing the IUpgradeableData intended to be extended by
* classes saving it's data to a database in BLOB/CLOB form.
*
* @version $Id: UpgradeableDataHashMap.java 27691 2017-12-29 14:24:12Z bastianf $
*
* @see org.cesecore.internal.IUpgradeableData
*/
public abstract class UpgradeableDataHashMap implements IUpgradeableData, Serializable {
/**
* Determines if a de-serialized file is compatible with this class.
*
* Maintainers must change this value if and only if the new version
* of this class is not compatible with old versions. See Sun docs
* for details.
*
*/
private static final long serialVersionUID = -1766329888474901945L;
// Use LinkedHashMap because we want to have consistent serializing of the hashmap in order to be able to sign/verify data
protected LinkedHashMap