Package com.labs64.netlicensing.util
Class XMLDSigValidatorCustom
java.lang.Object
com.labs64.netlicensing.util.XMLDSigValidatorCustom
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsSignature
(Document aDoc) Verify whether Document contains XML signature.static com.helger.xmldsig.XMLDSigValidationResult
validateSignature
(Document aDoc) Validate XML (imline) signature.static com.helger.xmldsig.XMLDSigValidationResult
validateSignature
(Document aDoc, Key aKey) Validate XML (detached) signature.
-
Method Details
-
containsSignature
Verify whether Document contains XML signature.- Parameters:
aDoc
- document to be verified- Returns:
- true if Document contains XML signature
-
validateSignature
public static com.helger.xmldsig.XMLDSigValidationResult validateSignature(@Nonnull Document aDoc) throws XMLSignatureException Validate XML (imline) signature.- Parameters:
aDoc
- Document containing inline sign certificate- Returns:
- XMLDSig validation result
- Throws:
XMLSignatureException
-
validateSignature
public static com.helger.xmldsig.XMLDSigValidationResult validateSignature(@Nonnull Document aDoc, Key aKey) throws XMLSignatureException Validate XML (detached) signature.- Parameters:
aDoc
- Document signature- Returns:
- XMLDSig validation result
- Throws:
XMLSignatureException
-