public final class UtilsSignatureCommons extends java.lang.Object implements IUtilsSignature
Class that contains methods related to the manage of signatures.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
DETACHED_SIGNATURE_MODE, ENVELOPED_SIGNATURE_MODE, ENVELOPING_SIGNATURE_MODE, EXPLICIT_SIGNATURE_MODE, IMPLICIT_SIGNATURE_MODE, VALIDATION_LEVEL_COMPLETE, VALIDATION_LEVEL_NONE, VALIDATION_LEVEL_SIMPLE| Modifier and Type | Method and Description |
|---|---|
static void |
checkValityPeriod(java.security.cert.X509Certificate certificate,
java.util.Date verificationDate)
Method that checks if the verification date parameter is into the certificate validity period.
|
static org.w3c.dom.Document |
getDocumentFromXML(byte[] xmlDocument)
Method that obtains an object as a representation of a XML document.
|
public static org.w3c.dom.Document getDocumentFromXML(byte[] xmlDocument)
throws SigningException
xmlDocument - Parameter that represents the XML document.SigningException - If the XML document has a bad format.public static void checkValityPeriod(java.security.cert.X509Certificate certificate,
java.util.Date verificationDate)
throws SigningException
certificate - Parameter that represents the certificate to validate.verificationDate - Parameter that represents the validation date.SigningException - If the certificate is expired or not yet valid.