/** * This method returns the container type * * @return the container type (ASiC-S/E) */ public String getContainerType() { XmlContainerInfo containerInfo = wrapped.getContainerInfo(); if (containerInfo != null) { return containerInfo.getContainerType(); } return null; }
/** * This method returns the LOTL country code * * @return the country code of the used LOTL */ public String getLOTLCountryCode() { XmlTrustedList listOfTrustedLists = wrapped.getListOfTrustedLists(); if (listOfTrustedLists != null) { return listOfTrustedLists.getCountryCode(); } return null; }
public boolean isSigningCertificateIdentified() { XmlSigningCertificate signingCertificate = signature.getSigningCertificate(); if (signingCertificate != null) { return signingCertificate.isDigestValueMatch() && signingCertificate.isIssuerSerialMatch(); } return false; }
public String getStructuralValidationMessage() { XmlStructuralValidation structuralValidation = signature.getStructuralValidation(); if (structuralValidation != null) { return structuralValidation.getMessage(); } return Utils.EMPTY_STRING; }
/** * This method returns the zip comment (if the document is a container) * * @return the zip comment for the current document (if container) or null */ public String getZipComment() { XmlContainerInfo containerInfo = wrapped.getContainerInfo(); if (containerInfo != null) { return containerInfo.getZipComment(); } return null; }
/** * This method returns the content of the mimetype file (if container) * * @return the content of the mimetype file */ public String getMimetypeFileContent() { XmlContainerInfo containerInfo = wrapped.getContainerInfo(); if (containerInfo != null) { return containerInfo.getMimeTypeContent(); } return null; }
public String getPolicyProcessingError() { XmlPolicy policy = signature.getPolicy(); if (policy != null) { return policy.getProcessingError(); } return Utils.EMPTY_STRING; }
/** * This method checks if the container has a mimetype file * * @return true if the mimetype file is present */ public boolean isMimetypeFilePresent() { XmlContainerInfo containerInfo = wrapped.getContainerInfo(); if (containerInfo != null) { return containerInfo.isMimeTypeFilePresent(); } return false; }
public String getStateOrProvince() { return signature.getSignatureProductionPlace().getStateOrProvince(); }
public String getAddress() { return signature.getSignatureProductionPlace().getAddress(); }
public boolean isStructuralValidationValid() { return (signature.getStructuralValidation() != null) && signature.getStructuralValidation().isValid(); }
public String getCity() { return signature.getSignatureProductionPlace().getCity(); }
public String getCountryName() { return signature.getSignatureProductionPlace().getCountryName(); }
public String getPostalCode() { return signature.getSignatureProductionPlace().getPostalCode(); }
/** * Create an instance of {@link XmlContainerInfo } * */ public XmlContainerInfo createXmlContainerInfo() { return new XmlContainerInfo(); }
/** * Create an instance of {@link XmlTrustedList } * */ public XmlTrustedList createXmlTrustedList() { return new XmlTrustedList(); }