keyrecoverydatapk.java

来自「一套JAVA的CA证书签发系统.」· Java 代码 · 共 67 行

JAVA
67
字号
/************************************************************************* *                                                                       * *  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.keyrecovery;/** * Primary key for key recovery data * * @version $Id: KeyRecoveryDataPK.java,v 1.5 2004/04/16 07:38:59 anatom Exp $ */public final class KeyRecoveryDataPK implements java.io.Serializable {	public String certSN;    public String issuerDN;	/**	 * Creates a new KeyRecoveryDataPK object.	 *	 * @param certificatesn certificate serial number	 * @param issuerdn dn of issuer of certificate	 */	public KeyRecoveryDataPK(java.math.BigInteger certSN, java.lang.String issuerDN) {        this.certSN = certSN.toString(16);        this.issuerDN = issuerDN;	}	/**	 * Creates a new KeyRecoveryDataPK object.	 */	public KeyRecoveryDataPK() {	}    public String getCertSN() {        return certSN;    }    public String getIssuerDN() {        return issuerDN;    }	/**	 * @see java.lang.Object#equals(java.lang.Object)	 */	public boolean equals(java.lang.Object other) {        if (other instanceof KeyRecoveryDataPK) {           return ( (certSN.equals(((KeyRecoveryDataPK)other).certSN)) &&               (issuerDN.equals(((KeyRecoveryDataPK)other).issuerDN)) );        }        return false;	}	/**	 * @see java.lang.Object#hashCode()	 */	public int hashCode() {		return (this.certSN+this.issuerDN).hashCode();	}}

⌨️ 快捷键说明

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