예제 #1
0
  public static String getCert() {

    //        cer_temp.section = "1234";
    //        cer_temp.expiration = "2016-12-09";
    //        cer_temp.authority = "3";
    //
    //        cer_temp.genrTime = "2015-12-09 11:11:11";
    //        cer_temp.genrType = "1";
    //        cer_temp.ID = "0123456789";
    //        cer_temp.orgID = "1234567890";
    //        cer_temp.genrIp = "192.168.100.100";
    //        cer_temp.sectSrc = "1111111122222222333333334444444455555555666666667777777788888888";
    //
    //        cer_temp.cerLen = 100;

    CerInfor infor = new CerInfor();
    infor.setSection("1000");
    infor.setExpiration("2015-12-21");
    infor.setAuthority("3");
    infor.setGenrTime("2015-12-21 16:30:25");
    infor.setGenrIp("192.168.1.200");
    infor.setGenrType("1");
    infor.setID("121");
    infor.setOrgID("1212");
    infor.setSectSrc("阙音演示");
    return acomms.encryptCer(infor);
  }