⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 extendedinformation.java

📁 一套JAVA的CA证书签发系统.
💻 JAVA
字号:
/************************************************************************* *                                                                       * *  EJBCA: The OpenSource Certificate Authority                          * *                                                                       * *  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 se.anatom.ejbca.ra;import java.util.HashMap;import java.util.Iterator;import se.anatom.ejbca.util.UpgradeableDataHashMap;/** * The model representation of Exended Information about a user. It's used for non-searchable data about a user,  * like a image, in an effort to minimize the need for database alterations * * @author  Philip Vendil * @version $Id: ExtendedInformation.java,v 1.2 2004/04/16 07:38:56 anatom Exp $ */public class ExtendedInformation extends UpgradeableDataHashMap implements java.io.Serializable, Cloneable {    public static final float LATEST_VERSION = 0;    // Public constants    // Wait for fields to use with this class.         // Public methods.    /** Creates a new instance of EndEntity Profile */    public ExtendedInformation() {      super();    }        public Object clone() throws CloneNotSupportedException {      ExtendedInformation clone = new ExtendedInformation();      HashMap clonedata = (HashMap) clone.saveData();      Iterator i = (data.keySet()).iterator();      while(i.hasNext()){        Object key = i.next();        clonedata.put(key, data.get(key));      }      clone.loadData(clonedata);      return clone;    }    /** Implemtation of UpgradableDataHashMap function getLatestVersion */    public float getLatestVersion(){       return LATEST_VERSION;    }    /** Implemtation of UpgradableDataHashMap function upgrade. */    public void upgrade(){      if(LATEST_VERSION != getVersion()){        // New version of the class, upgrade        data.put(VERSION, new Float(LATEST_VERSION));      }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -