Package org.ejbca.core.model.hardtoken.profiles

Examples of org.ejbca.core.model.hardtoken.profiles.EIDProfile


                  if (submessage.getSignCA() != -1) {
                    signCA = submessage.getSignCA();
                  }
                        HardTokenProfile htp = hardTokenSession.getHardTokenProfile(admin, data.getTokenType());
                        if ( htp!=null && htp instanceof EIDProfile ) {
                          EIDProfile hardTokenProfile = (EIDProfile)htp;
                          if (authCertProfile == -1) {
                            authCertProfile = hardTokenProfile.getCertificateProfileId(SwedishEIDProfile.CERTUSAGE_AUTHENC);                           
                          }
                          if (signCertProfile == -1) {
                            signCertProfile = hardTokenProfile.getCertificateProfileId(SwedishEIDProfile.CERTUSAGE_SIGN);
                          }
                          if (authCA == -1) {
                            authCA = hardTokenProfile.getCAId(SwedishEIDProfile.CERTUSAGE_AUTHENC);
                            if (authCA == EIDProfile.CAID_USEUSERDEFINED) {
                              authCA = data.getCAId();
                            }
                          }
                          if (signCA == -1) {
                            signCA = hardTokenProfile.getCAId(SwedishEIDProfile.CERTUSAGE_SIGN);
                            if (signCA == EIDProfile.CAID_USEUSERDEFINED) {
                              signCA = data.getCAId();
                            }                           
                          }
                        } else {
View Full Code Here


    if( action.equals(ACTION_CHANGE_PROFILETYPE)){
      this.profilename = request.getParameter(HIDDEN_HARDTOKENPROFILENAME);
      String value = request.getParameter(SELECT_HARDTOKENTYPE);
      if(value!=null){       
      int profiletype = Integer.parseInt(value);
      EIDProfile newprofile = null;
      switch(profiletype){         
        case SwedishEIDProfile.TYPE_SWEDISHEID :
          newprofile = new SwedishEIDProfile();
        break;
        case EnhancedEIDProfile.TYPE_ENHANCEDEID:
          newprofile =  new EnhancedEIDProfile();             
        break;   
        case TurkishEIDProfile.TYPE_TURKISHEID:
          newprofile =  new TurkishEIDProfile();             
        break;
     
      if(profiledata != null && profiledata instanceof EIDProfile){
        ((EIDProfile) profiledata).clone(newprofile);
        newprofile.reInit();
        profiledata = newprofile;
      }
     
     
      }
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.hardtoken.profiles.EIDProfile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.