@Override public CertificateListDto getOperatorRevokedCertificateList(OperatorDto dto) throws ParseException { CertificateAuthorityPortType port = getPort(); OperatorType operatorType = new OperatorType(); operatorType.setOperatorID(dto.getOperatorID()); CertificateListType certListType = port.getOperatorRevokedCertificateList(operatorType); CertificateListDto certListDto = new CertificateListDto(); for (CertificateType cert : certListType.getCertificateList()) certListDto.add( cert.getSerialID(), cert.getOperatorID(), cert.getPublicKey(), Data.convertStringToDate(cert.getStartDate()), Data.convertStringToDate(cert.getEndDate()), cert.getSignature()); return certListDto; }
@Override public void revokeCertificate(OperatorDto dto) { CertificateAuthorityPortType port = getPort(); OperatorType operatorType = new OperatorType(); operatorType.setOperatorID(dto.getOperatorID()); port.revokeCertificate(operatorType); }