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

📄 protectable.java

📁 一个免费的CA,基于EJB平台的,老师叫我们测试,现把之共享出来让大家参考
💻 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 org.ejbca.core.model.protect;import java.io.UnsupportedEncodingException;import java.security.NoSuchAlgorithmException;import java.security.NoSuchProviderException;/** *  * @author tomas * @version $Id: Protectable.java,v 1.1 2006/08/05 09:59:38 anatom Exp $ */public interface Protectable {	/** Creates and returns the hash code created from the object, the version	 * parameter can be used to handle upgrades to the class, since the hash must 	 * always be the same, even if this method is caled one year later.	 * 	 * @param dataVersion version of class/hash requested.	 * @return String hash value	 */	public String getHash(int hashVersion) throws NoSuchAlgorithmException, NoSuchProviderException, UnsupportedEncodingException;		/** The same as above, but returns the hash value for the current version of the object	 * 	 * @return hash value	 */	public String getHash() throws NoSuchAlgorithmException, NoSuchProviderException, UnsupportedEncodingException;		public int getHashVersion();		/** Returns the String form of the primary key for the database table that 	 * this object is stored in.	 * 	 * @return String Stringform of primary database key, used as key in the protection database table.	 */	public String getDbKeyString();		/** Returns a unique type string for these kinds of objects, for example LOGENTRY.	 * 	 * @return String can be anything, as long as it is always the same.	 */	public String getEntryType();}

⌨️ 快捷键说明

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