亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hardtokenprofile.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.hardtoken.hardtokenprofiles;import java.io.Serializable;import java.util.List;import se.anatom.ejbca.util.UpgradeableDataHashMap;import se.anatom.ejbca.util.passgen.PasswordGeneratorFactory;/** * HardTokenProfile is a basic class that should be inherited by all types * of hardtokenprofiles in the system. *  * It used to customize the information generated on hard tokens when they are  * processed. This information could be PIN-type number of certificates,  * certificate profiles and so on.  * * @version $Id: HardTokenProfile.java,v 1.3 2004/04/16 07:39:00 anatom Exp $ */public abstract class HardTokenProfile extends UpgradeableDataHashMap implements Serializable, Cloneable {    // Default Values        public static final String TRUE  = "true";    public static final String FALSE = "false";    public static final int PINTYPE_4DIGITS           = 1;    public static final int PINTYPE_6TO8DIGITS        = 2;    public static final int PINTYPE_6TO8DIGITSLETTERS = 3;    public static final int PINTYPE_6TO8ALLPRINTABLE  = 4;     // Protected Constants.	public static final String TYPE                           = "type";	    protected static final String NUMBEROFCOPIES                 = "numberofcopies";    protected static final String EREASABLETOKEN                 = "ereasabletoken";	protected static final String HARDTOKENPREFIX                = "hardtokenprefix";	protected static final String PINTYPE                        = "pintype";	protected static final String GENERATEIDENTICALPINFORCOPIES  = "generateidenticalpinforcopies";	    // Public Methods    /**     * Creates a new instance of CertificateProfile     */    public HardTokenProfile() {      setNumberOfCopies(1);	       setEreasableToken(false);           setHardTokenSNPrefix("000000");          setGenerateIdenticalPINForCopies(true);      }    // Public Methods mostly used by PrimeCard    /**     * Number of Copies indicates how many card for the samt user that should be generated.     * Generally this means, the PIN and PUK codes and encryption keys are identical. This     * doesn't mean that the toekns are exact copies.      */    public int getNumberOfCopies(){return ((Integer)data.get(NUMBEROFCOPIES)).intValue();}	/**	 * Indicates if the same pin code should be used for all copies of the token or if a	 * new one should be generated. 	 */	public boolean getGenerateIdenticalPINForCopies(){return ((Boolean) data.get(GENERATEIDENTICALPINFORCOPIES)).booleanValue();}    /**     * Indicaties if the generaded token should be ereasable or not,     *      * @return true if the card should be ereasable     */    public boolean getEreasableToken(){ return ((Boolean)data.get(EREASABLETOKEN)).booleanValue(); }        /**     * Returns the hardtoken serialnumber prefix that is intended to identify the organization     * issuing the cards.     *      * @return the serial number prefix.     */        public String getHardTokenSNPrefix(){ return (String) data.get(HARDTOKENPREFIX); }    	/**	 * Given a token identification string the method determines if the token	 * supports the structure of this profile.	 * 	 * @return true if it's possible to create a token accoringly to the profile.	 */    public abstract boolean isTokenSupported(String tokenidentificationstring);	/**	 * Generates a PIN code that should be used for the given certusage.	 * Subsequent calls to the samt method and samt certusage gives the same	 * PIN-code if not the regenerate flag i set.	 * 	 * @param certusage should be one of the CERTUSAGE_ constants.	 * @param regenerate indicates that a new PIN should be generated.	 * @return a generated PIN code.	 */    public abstract String getPIN(int certusage, boolean regenerate);	/**	 * Generates a PUK code that should be used for the given certusage.	 * Subsequent calls to the samt method and samt certusage gives the same	 * PUK-code if not the regenerate flag i set.	 * 	 * @param certusage should be one of the CERTUSAGE_ constants.	 * @param regenerate indicates that a new PUK should be generated.	 * @return a generated PUK code.	 */            	public abstract String getPUK(int certusage, boolean regenerate);        	        // Public Methods mostly used by EJBCA  	public void setNumberOfCopies(int numberofcopies) { data.put(NUMBEROFCOPIES,new Integer(numberofcopies));}	public void setEreasableToken(boolean ereasabletoken) {data.put(EREASABLETOKEN, Boolean.valueOf(ereasabletoken));}		public void setHardTokenSNPrefix(String hardtokensnprefix){ data.put(HARDTOKENPREFIX,hardtokensnprefix); }		public void setGenerateIdenticalPINForCopies(boolean generate){ data.put(GENERATEIDENTICALPINFORCOPIES, Boolean.valueOf(generate));}		/**	 * Retrieves what type of pin code that should be generated for	 * tokens with this profile.	 * 	 * @param certusage the should be one of the CERTUSAGE_ constants.	 * @return a pintype with a value of one of the PINTYPE_ constants 	 */	public int getPINType(int certusage){	  return ((Integer) ((List) data.get(PINTYPE)).get(certusage)).intValue();		}		public  void setPINType(int certusage, int pintype){		((List) data.get(PINTYPE)).set(certusage, new Integer(pintype));			}    public abstract Object clone() throws CloneNotSupportedException;        public abstract float getLatestVersion();        public void upgrade(){    	// Performing upgrade rutines    }    	// Protected methods	protected boolean isTokenSupported(String[] supportedtokens, String tokenidentificationstring){	  boolean returnval = false;	  for(int i=0; i<supportedtokens.length; i++){	  	if(supportedtokens[i].equals(tokenidentificationstring))	  	  returnval=true;	  }	  	  return returnval;		}		/**	 * Help method used to generate PIN-codes.	 */	protected String getPIN(String[] pinstore, int certusage, int pintype, boolean regenerate){      	  if(pinstore[certusage] == null || regenerate){		switch(pintype){		  case PINTYPE_4DIGITS :		    pinstore[certusage] = PasswordGeneratorFactory.getInstance(PasswordGeneratorFactory.PASSWORDTYPE_DIGITS).getNewPassword(4,4); 		    break;	      case PINTYPE_6TO8DIGITS :		    pinstore[certusage] = PasswordGeneratorFactory.getInstance(PasswordGeneratorFactory.PASSWORDTYPE_DIGITS).getNewPassword(6,8);			break;	      case PINTYPE_6TO8DIGITSLETTERS :		    pinstore[certusage] = PasswordGeneratorFactory.getInstance(PasswordGeneratorFactory.PASSWORDTYPE_LETTERSANDDIGITS).getNewPassword(6,8);			break;		  case PINTYPE_6TO8ALLPRINTABLE :		    pinstore[certusage] = PasswordGeneratorFactory.getInstance(PasswordGeneratorFactory.PASSWORDTYPE_ALLPRINTABLE).getNewPassword(6,8);			break;		}	  }    	      return pinstore[certusage]; 	}		/**	 * Help method used to generate PUK-codes.	 */	protected String getPUK(String[] pukstore, int certusage, int pintype, boolean regenerate){      // TODO fix lengths	  if(pukstore[certusage] == null || regenerate){		switch(pintype){		  case PINTYPE_4DIGITS :			pukstore[certusage] = PasswordGeneratorFactory.getInstance(PasswordGeneratorFactory.PASSWORDTYPE_DIGITS).getNewPassword(4,4); 			break;		  case PINTYPE_6TO8DIGITS :			pukstore[certusage] = PasswordGeneratorFactory.getInstance(PasswordGeneratorFactory.PASSWORDTYPE_DIGITS).getNewPassword(6,8);			break;		  case PINTYPE_6TO8DIGITSLETTERS :			pukstore[certusage] = PasswordGeneratorFactory.getInstance(PasswordGeneratorFactory.PASSWORDTYPE_LETTERSANDDIGITS).getNewPassword(6,8);			break;		  case PINTYPE_6TO8ALLPRINTABLE :			pukstore[certusage] = PasswordGeneratorFactory.getInstance(PasswordGeneratorFactory.PASSWORDTYPE_ALLPRINTABLE).getNewPassword(6,8);			break;		}	  }    		  return pukstore[certusage]; 	}	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本三级亚洲精品| 中文字幕一区二区三区在线观看| 国产精品系列在线播放| 亚洲丝袜自拍清纯另类| 日韩欧美色综合| 色婷婷综合五月| 国产黄人亚洲片| 日韩精彩视频在线观看| 中文字幕一区二区三中文字幕| 日韩欧美一二三| 欧美日韩在线一区二区| 99久久精品免费看国产| 久久丁香综合五月国产三级网站| 亚洲在线观看免费| 国产精品女同一区二区三区| 日韩欧美亚洲另类制服综合在线| 欧美三级日韩三级国产三级| 福利电影一区二区三区| 久久精品国产精品青草| 午夜精品久久久久久久 | 欧美日韩精品一区视频| 成人黄色电影在线| 国产一区二区精品久久| 日本不卡中文字幕| 亚洲bt欧美bt精品777| 亚洲天堂成人在线观看| 国产精品免费丝袜| 欧美国产日韩a欧美在线观看| 亚洲图片一区二区| 欧美亚洲高清一区二区三区不卡| 成人av在线影院| 春色校园综合激情亚洲| 国产成人精品亚洲777人妖| 老司机免费视频一区二区| 日韩高清在线观看| 日韩电影在线免费看| 国产精品无遮挡| 在线观看欧美精品| 色系网站成人免费| 色综合天天综合网天天狠天天 | 亚洲国产美女搞黄色| 综合中文字幕亚洲| 精品制服美女丁香| 欧美日本一道本在线视频| 欧美性色综合网| 欧美日韩国产乱码电影| 欧美日韩高清一区二区不卡| 欧美三级在线播放| 欧美一区二区三区播放老司机| 3d动漫精品啪啪| 777精品伊人久久久久大香线蕉| 欧美精品在线视频| 91精品国产福利| 日韩免费性生活视频播放| 欧美www视频| 国产日韩欧美电影| 亚洲欧洲三级电影| 一区二区不卡在线播放| 日韩精品电影在线| 国产成人精品在线看| 国产专区欧美精品| jlzzjlzz欧美大全| 欧洲激情一区二区| 日韩一区二区三区电影在线观看| 日韩一区二区影院| 久久久久久久久99精品| 自拍偷自拍亚洲精品播放| 一区二区在线免费观看| 日本成人中文字幕在线视频| 国产一区二区三区免费| 97aⅴ精品视频一二三区| 欧美色欧美亚洲另类二区| 欧美成人伊人久久综合网| 亚洲国产成人午夜在线一区| 亚洲精品国久久99热| 免费在线看成人av| 不卡一区二区三区四区| 欧美男女性生活在线直播观看| 欧美一级日韩免费不卡| 国产精品久久毛片a| 首页欧美精品中文字幕| 国产一本一道久久香蕉| 在线观看www91| 欧美一级二级在线观看| 日本一区免费视频| 亚洲成av人片在线观看| 国产麻豆精品在线| 欧美性受xxxx黑人xyx| 国产亚洲一区二区三区在线观看| 一区二区久久久久久| 国产一区二区免费看| 91官网在线观看| 久久婷婷成人综合色| 亚洲成人免费视| 国产a视频精品免费观看| 欧美高清你懂得| 国产精品激情偷乱一区二区∴| 日韩精品欧美成人高清一区二区| 国产成人av影院| 欧美一区二区三区精品| 一区二区三区精品| 国产99久久久久| 日韩一区二区三| 亚洲精品自拍动漫在线| 国产精品一区在线观看乱码| 欧美精品丝袜久久久中文字幕| 天天综合色天天| zzijzzij亚洲日本少妇熟睡| 欧美一级日韩免费不卡| 午夜婷婷国产麻豆精品| 97久久人人超碰| 国产欧美一二三区| 精品一区二区综合| 欧美三级视频在线播放| 亚洲男人的天堂在线aⅴ视频| 国产一区二区成人久久免费影院| 欧美日韩国产高清一区二区| 亚洲精品成人少妇| 99久久精品免费| 国产午夜精品福利| 久久97超碰国产精品超碰| 欧美精品v日韩精品v韩国精品v| 中文字幕综合网| 成人夜色视频网站在线观看| 精品久久久久香蕉网| 日韩高清在线一区| 欧美一区在线视频| 三级精品在线观看| 在线视频一区二区三| 亚洲精品免费电影| 99久久精品国产麻豆演员表| 国产精品国产三级国产三级人妇| 国产成人午夜片在线观看高清观看| 精品国产伦一区二区三区免费| 天天综合网天天综合色| 欧美老肥妇做.爰bbww| 亚洲成人免费视| 777亚洲妇女| 美女网站视频久久| 欧美大片日本大片免费观看| 日本美女一区二区三区| 日韩女优av电影在线观看| 另类小说综合欧美亚洲| xfplay精品久久| 国产二区国产一区在线观看| 欧美激情综合网| www..com久久爱| 亚洲女人的天堂| 狠狠色伊人亚洲综合成人| 久久久久久久久久久电影| 国产91精品一区二区麻豆亚洲| 国产精品理论片在线观看| av动漫一区二区| 一区二区国产视频| 欧美日韩电影在线播放| 日本va欧美va精品发布| 欧美丝袜自拍制服另类| 国产精品久久久久久久久免费桃花| 成人午夜精品一区二区三区| 亚洲欧美日韩国产综合在线| 91成人国产精品| 日韩电影免费一区| 久久久噜噜噜久久中文字幕色伊伊| 国产成人aaa| 亚洲美女视频在线| 日韩精品在线网站| 亚洲激情av在线| 777色狠狠一区二区三区| 精品一区二区三区久久| 国产精品少妇自拍| 欧洲亚洲精品在线| 久久99精品久久久久久国产越南| 欧美国产日本韩| 欧美日韩一卡二卡| 国产一区二区导航在线播放| 亚洲精品va在线观看| 精品免费视频一区二区| 97精品国产97久久久久久久久久久久| 亚洲国产一区二区三区| 欧美精品一区二区在线观看| 91视频在线看| 裸体健美xxxx欧美裸体表演| 国产精品久久久久久久第一福利| 欧美三级视频在线| 日韩美一区二区三区| 高潮精品一区videoshd| 亚洲国产日韩a在线播放| 久久综合色天天久久综合图片| 93久久精品日日躁夜夜躁欧美| 日韩电影免费一区| 亚洲免费大片在线观看| 欧美成人猛片aaaaaaa| 99国产精品视频免费观看| 毛片av一区二区| 亚洲欧美视频一区| 久久久综合视频| 一区二区三区不卡在线观看 | 精品国产免费视频| 欧美午夜一区二区三区免费大片| 国产精品综合久久|