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

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

?? caimportprofilescommand.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.admin;import java.beans.XMLDecoder;import java.io.File;import java.io.FileInputStream;import java.util.HashMap;import javax.naming.InitialContext;import se.anatom.ejbca.SecConst;import se.anatom.ejbca.ca.exception.CertificateProfileExistsException;import se.anatom.ejbca.ca.store.ICertificateStoreSessionHome;import se.anatom.ejbca.ca.store.ICertificateStoreSessionRemote;import se.anatom.ejbca.ca.store.certificateprofiles.CertificateProfile;import se.anatom.ejbca.ra.raadmin.EndEntityProfile;import se.anatom.ejbca.ra.raadmin.EndEntityProfileExistsException;import se.anatom.ejbca.ra.raadmin.IRaAdminSessionHome;import se.anatom.ejbca.ra.raadmin.IRaAdminSessionRemote;/** * Export profiles from the databse to XML-files. * * @version $Id: CaImportProfilesCommand.java,v 1.7 2004/04/16 07:38:57 anatom Exp $ */public class CaImportProfilesCommand extends BaseCaAdminCommand {    /**     * Creates a new instance of CaImportProfilesCommand     *     * @param args command line arguments     */    public CaImportProfilesCommand(String[] args) {        super(args);    }    /**     * Runs the command     *     * @throws IllegalAdminCommandException Error in command args     * @throws ErrorAdminCommandException Error running command     */    public void execute() throws IllegalAdminCommandException, ErrorAdminCommandException {        try {            InitialContext jndicontext = new InitialContext();            Object obj1 = jndicontext.lookup("CertificateStoreSession");            ICertificateStoreSessionHome certificatesessionhome = (ICertificateStoreSessionHome) javax.rmi.PortableRemoteObject.narrow(obj1,                    ICertificateStoreSessionHome.class);            ICertificateStoreSessionRemote certificatesession = certificatesessionhome.create();            obj1 = jndicontext.lookup("RaAdminSession");            IRaAdminSessionHome raadminsessionhome = (IRaAdminSessionHome) javax.rmi.PortableRemoteObject.narrow(jndicontext.lookup(                        "RaAdminSession"), IRaAdminSessionHome.class);            IRaAdminSessionRemote raadminsession = raadminsessionhome.create();            if (args.length < 2) {                System.out.println("Usage: CA importprofiles <inpath>");                System.out.print("\n");                return;            }            String inpath = args[1];            System.out.println("Importing certificate and entity profiles: ");            File inFile = new File(inpath);            // List all filenames in the given directory, we will try to import them all            File[] infiles = inFile.listFiles();            for (int i = 0; i < infiles.length; i++) {                System.out.println("Filename:"+infiles[i].getName());                if ( infiles[i].isFile() && ((infiles[i].getName().indexOf("certprofile_") > -1) || (infiles[i].getName().indexOf("entityprofile_") > -1)) ) {                    boolean entityprofile = false;                    if (infiles[i].getName().indexOf("entityprofile_") > -1) {                        entityprofile=true;                    }                    int index1 = infiles[i].getName().indexOf("_");                    int index2 = infiles[i].getName().lastIndexOf("-");                    int index3 = infiles[i].getName().lastIndexOf(".xml");                    if (index1 < 0 || index2 < 0 || index3 < 0) {                        System.out.println("Error: Filename not as expected (cert/entityprofile_<name>-<id>.xml).");                    } else {                        String profilename = infiles[i].getName().substring(index1+1,index2);                        //System.out.println("Name:"+profilename);                        //System.out.println("Id:"+infiles[i].getName().substring(index2+1,index3));                        int profileid = Integer.parseInt(infiles[i].getName().substring(index2+1,index3));                        // We don't add the fixed profiles, EJBCA handles those automagically                        if ( (!entityprofile && profileid == SecConst.CERTPROFILE_FIXED_ENDUSER) ||                             (!entityprofile && profileid == SecConst.CERTPROFILE_FIXED_SUBCA) ||                            (!entityprofile && profileid == SecConst.CERTPROFILE_FIXED_ROOTCA) ) {                             System.out.println("Not adding fixed certificate profile '"+profilename+"'.");                        } else {                            if (entityprofile && profileid == SecConst.EMPTY_ENDENTITYPROFILE) {                                System.out.println("Not adding fixed entity profile '"+profilename+"'.");                            } else {                                // Check if the profiles already exist, cause we don鋞 want to add them if they do                                boolean error = false;                                if (entityprofile) {                                    if (raadminsession.getEndEntityProfileId(administrator, profilename) != SecConst.PROFILE_NO_PROFILE) {                                        System.out.println("Error: Entity profile '"+profilename+"' already exist in database.");                                        error = true;                                    }                                    if (raadminsession.getEndEntityProfile(administrator, profileid) != null) {                                        System.out.println("Error: Entity profileid '"+profileid+"' already exist in database.");                                        error = true;                                    }                                } else {                                    if (certificatesession.getCertificateProfileId(administrator,profilename) != SecConst.PROFILE_NO_PROFILE) {                                        System.out.println("Error: Certificate profile '"+profilename+"' already exist in database.");                                        error = true;                                    }                                    if (certificatesession.getCertificateProfile(administrator,profileid) != null) {                                        System.out.println("Error: Certificate profile id '"+profileid+"' already exist in database.");                                        error = true;                                    }                                }                                if (!error) {                                    CertificateProfile cprofile = null;                                    EndEntityProfile eprofile = null;                                    FileInputStream is = new FileInputStream(infiles[i]);                                    XMLDecoder decoder = new XMLDecoder( is );                                    if (entityprofile) {                                        eprofile = new EndEntityProfile();                                        eprofile.loadData((HashMap)decoder.readObject());                                        try{                                                                                   raadminsession.addEndEntityProfile(administrator,profileid,profilename,eprofile);										   System.out.println("Added entity profile '"+profilename+"' to database.");                                        }catch(EndEntityProfileExistsException eepee){  										  System.out.println("Error: Error adding entity profile '"+profilename+"' to database.");                                        }                                                                            } else {                                        cprofile = new CertificateProfile();                                        cprofile.loadData((HashMap)decoder.readObject());                                        try{                                                                                  certificatesession.addCertificateProfile(administrator,profileid,profilename,cprofile);										  System.out.println("Added certificate profile '"+profilename+"' to database.");                                        }catch(CertificateProfileExistsException cpee){											System.out.println("Error: Error adding certificate profile '"+profilename+"' to database.");                                        }                                                                              }                                    decoder.close();                                    is.close();                                }                            }                        }                    }                }            }                  } catch (Exception e) {            throw new ErrorAdminCommandException(e);        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人激情开心网| 亚洲综合在线第一页| 亚洲综合偷拍欧美一区色| 久久99精品国产麻豆不卡| 亚洲精品国产成人久久av盗摄 | 欧美一级黄色片| 欧洲亚洲国产日韩| 日本道精品一区二区三区| av爱爱亚洲一区| 色婷婷精品大在线视频| 亚洲欧洲国产日本综合| 国产欧美一区二区精品性色超碰| 欧美一级专区免费大片| 日韩视频免费观看高清完整版| 欧美另类videos死尸| 欧美精品电影在线播放| 欧美肥妇free| 日韩午夜电影在线观看| 日韩三级免费观看| 欧美成人一区二区| 2023国产精品自拍| 国产亚洲福利社区一区| 久久精品无码一区二区三区| 久久久99免费| 91婷婷韩国欧美一区二区| 91麻豆精东视频| 欧美精品一卡二卡| 日韩三级中文字幕| 中文字幕不卡一区| 亚洲精品精品亚洲| 日本不卡视频在线| 国产精品一区二区你懂的| 波多野结衣91| 欧美日韩亚州综合| 2017欧美狠狠色| 一区在线播放视频| 日本中文在线一区| 国产精品麻豆一区二区| 亚洲综合免费观看高清完整版 | 亚洲国产日韩精品| 蜜臀av性久久久久蜜臀aⅴ四虎| 麻豆精品在线观看| 99国产精品久久久| 777精品伊人久久久久大香线蕉| 欧美高清激情brazzers| 国产日韩综合av| 综合亚洲深深色噜噜狠狠网站| 欧美手机在线视频| 久久九九99视频| 亚洲国产视频直播| 国产馆精品极品| 欧美日韩性生活| 亚洲国产精品成人综合| 日韩电影一二三区| 色综合天天综合给合国产| 日韩三级av在线播放| 亚洲人成7777| 国产东北露脸精品视频| 欧美日韩情趣电影| 亚洲视频一二区| 裸体在线国模精品偷拍| 国产精品白丝在线| 美日韩一级片在线观看| 色婷婷久久久综合中文字幕| 日本一区免费视频| 久久97超碰国产精品超碰| 欧美午夜精品久久久久久孕妇| www国产精品av| 午夜精品国产更新| 成人黄色网址在线观看| 精品国产乱码久久久久久闺蜜| 亚洲大片在线观看| 成人av网在线| 精品国产91乱码一区二区三区| 一区二区三区91| 激情文学综合丁香| 国产精品一区二区在线播放| 色婷婷av一区二区三区gif| 欧美一区二区视频在线观看| 亚洲在线成人精品| 不卡的av在线播放| 亚洲精品在线观看网站| 日韩国产欧美在线观看| 欧美精品三级日韩久久| 婷婷夜色潮精品综合在线| 欧美日韩视频一区二区| 亚洲国产欧美日韩另类综合| 91免费看片在线观看| 久久久久久久av麻豆果冻| 国产精品自拍三区| 欧美国产视频在线| 不卡视频一二三四| 国产精品家庭影院| 91老司机福利 在线| 亚洲欧洲国产日韩| 色妞www精品视频| 亚洲一级在线观看| 91精品国产综合久久小美女| 亚洲成人你懂的| 欧美日韩一区成人| 日产欧产美韩系列久久99| 日韩视频免费观看高清完整版| 狠狠色丁香婷综合久久| 久久久久久久久久电影| av毛片久久久久**hd| 亚洲免费观看在线观看| 欧美日韩一区二区三区四区| 秋霞午夜鲁丝一区二区老狼| 久久奇米777| 99久久久国产精品| 亚洲一区二三区| 欧美图区在线视频| 国产在线日韩欧美| 国产精品水嫩水嫩| 欧美日韩日日摸| 国产sm精品调教视频网站| 亚洲狠狠丁香婷婷综合久久久| 欧美精品久久99久久在免费线 | 亚洲无人区一区| 欧美一级欧美三级在线观看 | 久久精品视频一区二区三区| 成人一区二区视频| 一区二区免费在线播放| 精品久久久久久久久久久久包黑料| 精品一区二区日韩| 日韩一区中文字幕| 欧美大片一区二区三区| 亚洲免费观看视频| 精品裸体舞一区二区三区| 91猫先生在线| 国产一区日韩二区欧美三区| 亚洲色图一区二区| 日韩免费视频一区二区| 国产盗摄一区二区| 日韩电影在线免费看| 中文字幕日本乱码精品影院| 久久综合狠狠综合久久综合88| 色中色一区二区| 国产黄人亚洲片| 丝袜美腿亚洲一区二区图片| 最近中文字幕一区二区三区| 日韩欧美在线影院| 欧美狂野另类xxxxoooo| 色就色 综合激情| 国产精品自拍毛片| 精品福利视频一区二区三区| 欧美日韩国产成人在线免费| www.亚洲色图.com| 国产白丝精品91爽爽久久| 裸体歌舞表演一区二区| 午夜精品影院在线观看| 亚洲精品国产a| 亚洲天堂av一区| 久久久久久一级片| 久久久久久一二三区| 日韩欧美国产wwwww| 欧美精品久久99久久在免费线 | 亚洲一级不卡视频| 亚洲视频免费观看| 99在线热播精品免费| 国产不卡在线视频| 亚洲欧美电影一区二区| 5858s免费视频成人| 5858s免费视频成人| 欧美理论在线播放| 日韩一区二区在线看| 欧美电视剧在线看免费| 91精品在线免费| 日韩欧美一级二级| 日韩精品中文字幕一区二区三区| 欧美一级免费观看| 制服视频三区第一页精品| 欧美日韩国产综合一区二区| 精品一区二区三区在线观看国产| 欧美综合亚洲图片综合区| 日韩专区一卡二卡| 日韩精品亚洲专区| 九色综合国产一区二区三区| 精品一区二区三区在线视频| 国产一区二区h| 不卡的看片网站| 国产综合一区二区| 青娱乐精品视频| 精品一区二区三区在线播放视频 | 欧美在线短视频| 91视频.com| 91精品综合久久久久久| 久久众筹精品私拍模特| 国产欧美一区二区精品忘忧草| 国产欧美1区2区3区| 亚洲欧美日韩精品久久久久| 日韩精品一区第一页| 国产精品资源网站| 99久久精品国产导航| 欧美这里有精品| 日韩精品一区二区三区视频在线观看| 久久午夜免费电影| 一区二区三区四区在线播放 | 亚洲成国产人片在线观看| 人人精品人人爱|