Package org.ejbca.core.model.approval

Examples of org.ejbca.core.model.approval.ApprovalDataText


   */
  @Override
  public List<ApprovalDataText> getNewRequestDataAsText(Admin admin) {
    ArrayList<ApprovalDataText> retval = new ArrayList<ApprovalDataText>();
    if ( cAName != null ) {
      retval.add(new ApprovalDataText("CANAME",cAName,true,false));
    }
    return retval;
  }
View Full Code Here


  }
 
  public List<ApprovalDataText> getNewRequestDataAsText(Admin admin, CAAdminSession caAdminSession, EndEntityProfileSession endEntityProfileSession,
      CertificateProfileSession certificateProfileSession, HardTokenSession hardTokenSession) {
    ArrayList<ApprovalDataText> retval = new ArrayList<ApprovalDataText>();
    retval.add(new ApprovalDataText("USERNAME",userdata.getUsername(),true,false));
    retval.add(new ApprovalDataText("SUBJECTDN",CertTools.stringToBCDNString(userdata.getDN()),true,false));
    retval.add(getTextWithNoValueString("SUBJECTALTNAME",userdata.getSubjectAltName()));
    String dirattrs = userdata.getExtendedinformation() != null ? userdata.getExtendedinformation().getSubjectDirectoryAttributes() : null;
    retval.add(getTextWithNoValueString("SUBJECTDIRATTRIBUTES",dirattrs));
    retval.add(getTextWithNoValueString("EMAIL",userdata.getEmail()));
    retval.add(new ApprovalDataText("CA", caAdminSession.getCAInfo(admin, userdata.getCAId()).getName(),true,false));
    retval.add(new ApprovalDataText("ENDENTITYPROFILE", endEntityProfileSession.getEndEntityProfileName(admin, userdata.getEndEntityProfileId()),true,false));   
    retval.add(new ApprovalDataText("CERTIFICATEPROFILE", certificateProfileSession.getCertificateProfileName(admin, userdata.getCertificateProfileId()),true,false));
    retval.add(ApprovalRequestHelper.getTokenName(hardTokenSession, admin,userdata.getTokenType()));
    retval.add(getTextWithNoValueString("HARDTOKENISSUERALIAS", hardTokenSession.getHardTokenIssuerAlias(admin, userdata.getHardTokenIssuerId())));
    retval.add(new ApprovalDataText("KEYRECOVERABLE",userdata.getKeyRecoverable() ? "YES" : "NO",true,true));
    retval.add(new ApprovalDataText("SENDNOTIFICATION",userdata.getSendNotification() ? "YES" : "NO",true,true));   
    return retval;
  }
View Full Code Here

    return retval;
  }
 
  private ApprovalDataText getTextWithNoValueString(String header, String data){
    if(data==null || data.equals("")){
      return new ApprovalDataText(header,"NOVALUE",true,true);
    }
    return new ApprovalDataText(header,data,true,false);
  }
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.approval.ApprovalDataText

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.