/** * This method indicates if the digest value and the issuer and serial match for the signing certificate . * * @param signatureId * The identifier of the signature. * @return true if the digest value and the issuer and serial match. */ public boolean isSigningCertificateIdentified(final String signatureId) { SignatureWrapper signature = getSignatureByIdNullSafe(signatureId); return signature.isSigningCertificateIdentified(); }
/** * Indicates if there is an archive timestamp. * * @param signatureId * The identifier of the signature. * @return true if the archive timestamp is present */ public boolean isThereALevel(final String signatureId) { SignatureWrapper signatureWrapper = getSignatureByIdNullSafe(signatureId); return signatureWrapper.isThereALevel(); }
/** * This method returns the signature format for the given signature. * * @param signatureId * The identifier of the signature, for which the format is sought. * @return The signature format */ public String getSignatureFormat(final String signatureId) { SignatureWrapper signature = getSignatureByIdNullSafe(signatureId); return signature.getSignatureFormat(); }
/** * This method returns signing certificate dss id for the given signature. * * @param signatureId * The identifier of the signature, for which the signing certificate is sought. * @return signing certificate dss id for the given signature. */ public String getSigningCertificateId(final String signatureId) { SignatureWrapper signature = getSignatureByIdNullSafe(signatureId); return signature.getSigningCertificateId(); }
/** * This method returns the list of certificates in the chain of the main signature. * * @param signatureId * The identifier of the signature. * @return list of certificate's dss id for the given signature. */ public List<String> getSignatureCertificateChain(final String signatureId) { SignatureWrapper signature = getSignatureByIdNullSafe(signatureId); return signature.getCertificateChainIds(); }
/** * Indicates if the -B level is technically valid. It means that the signature value is valid. * * @param signatureId * The identifier of the signature. * @return true if the signature value is valid */ public boolean isBLevelTechnicallyValid(final String signatureId) { SignatureWrapper signature = getSignatureByIdNullSafe(signatureId); return signature.isBLevelTechnicallyValid(); }
/** * Indicates if the -T level is technically valid. It means that the signature and the digest are valid. * * @param signatureId * The identifier of the signature. * @return true if the signature and digest are valid */ public boolean isTLevelTechnicallyValid(final String signatureId) { SignatureWrapper signatureWrapper = getSignatureByIdNullSafe(signatureId); return signatureWrapper.isTLevelTechnicallyValid(); }
/** * This method returns the {@code DigestAlgorithm} for the given signature. * * @param signatureId * The identifier of the signature, for which the algorithm is sought. * @return The {@code DigestAlgorithm} for the given signature */ public DigestAlgorithm getSignatureDigestAlgorithm(final String signatureId) { SignatureWrapper signature = getSignatureByIdNullSafe(signatureId); return signature.getDigestAlgorithm(); }
/** * This method returns the {@code DigestAlgorithm} for the given signature. * * @param signatureId * The identifier of the signature, for which the algorithm is sought. * @return The {@code DigestAlgorithm} for the given signature */ public EncryptionAlgorithm getSignatureEncryptionAlgorithm(final String signatureId) { SignatureWrapper signature = getSignatureByIdNullSafe(signatureId); return signature.getEncryptionAlgorithm(); }
/** * The identifier of the policy. * * @param signatureId * The identifier of the signature. * @return the policy identifier */ public String getPolicyId(final String signatureId) { SignatureWrapper signature = getSignatureByIdNullSafe(signatureId); return signature.getPolicyId(); }
/** * Indicates if the -A (-LTA) level is technically valid. It means that the signature of the archive timestamps are * valid and their imprint is valid too. * * @param signatureId * The identifier of the signature. * @return true if the signature and digest are valid */ public boolean isALevelTechnicallyValid(final String signatureId) { SignatureWrapper signatureWrapper = getSignatureByIdNullSafe(signatureId); return signatureWrapper.isALevelTechnicallyValid(); }
/** * This method retrieves the error message for the given signature id * * @param signatureId * the signature id * @return the error message */ public String getErrorMessage(final String signatureId) { SignatureWrapper signature = getSignatureByIdNullSafe(signatureId); return signature.getErrorMessage(); }
/** * This method returns the claimed signing time. * * @param signatureId * The identifier of the signature, for which the date is sought. * @return the signature time for the given signature */ public Date getSignatureDate(final String signatureId) { SignatureWrapper signature = getSignatureByIdNullSafe(signatureId); return signature.getDateTime(); }
/** * This method returns the {@code MaskGenerationFunction} for the given signature. * * @param signatureId * The identifier of the signature, for which the algorithm is sought. * @return The {@code MaskGenerationFunction} for the given signature */ public MaskGenerationFunction getSignatureMaskGenerationFunction(String signatureId) { SignatureWrapper signature = getSignatureByIdNullSafe(signatureId); return signature.getMaskGenerationFunction(); }
/** * This method returns the list of identifier of the timestamps related to the given signature. * * @param signatureId * The identifier of the signature. * @return The list of identifier of the timestamps */ public List<String> getTimestampIdList(final String signatureId) { SignatureWrapper signature = getSignatureByIdNullSafe(signatureId); return signature.getTimestampIdsList(); }
/** * This method returns the list of timestamps wrappers which covers the given signature. * * @param signatureId * The identifier of the signature. * @return The list of timestamp wrappers */ public List<TimestampWrapper> getTimestampList(final String signatureId) { SignatureWrapper signature = getSignatureByIdNullSafe(signatureId); return signature.getTimestampList(); }
/** * Indicates if there is a signature timestamp. * * @param signatureId * The identifier of the signature. * @return true if the signature timestamp is present */ public boolean isThereTLevel(final String signatureId) { SignatureWrapper signatureWrapper = getSignatureByIdNullSafe(signatureId); return signatureWrapper.isThereTLevel(); }
/** * Indicates if there is an -X1 or -X2 timestamp. * * @param signatureId * The identifier of the signature. * @return true if the -X1 or -X2 is present */ public boolean isThereXLevel(final String signatureId) { SignatureWrapper signatureWrapper = getSignatureByIdNullSafe(signatureId); return signatureWrapper.isThereXLevel(); }
/** * Indicates if the -X level is technically valid. It means that the signature and the digest are valid. * * @param signatureId * The identifier of the signature. * @return true if the signature and digest are valid */ public boolean isXLevelTechnicallyValid(final String signatureId) { SignatureWrapper signatureWrapper = getSignatureByIdNullSafe(signatureId); return signatureWrapper.isXLevelTechnicallyValid(); }