Package net.shibboleth.tool.xmlsectool
Class SignatureHelper
- java.lang.Object
-
- net.shibboleth.tool.xmlsectool.SignatureHelper
-
public final class SignatureHelper extends Object
Classes to assist with signature operations.
-
-
Field Summary
Fields Modifier and Type Field Description private static List<String>ENSURE_NL_ELEMENTSElements which should be forced into a NL - value - NL format.private static List<String>STRIP_CR_ELEMENTSElements which should be examined for CRs, and stripped of them.
-
Constructor Summary
Constructors Modifier Constructor Description privateSignatureHelper()Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidensureNLsWrapNamedChildren(Element signature, String elementName)Ensure a named child element is in a NL - value - NL format.static voidpostProcessSignature(Element signatureElement)Post-process a generated signature.private static voidremoveCRsFromNamedChildren(Element signature, String elementName)Remove any CRs from the text content of named child elements.
-
-
-
Method Detail
-
removeCRsFromNamedChildren
private static void removeCRsFromNamedChildren(@Nonnull Element signature, @Nonnull String elementName)Remove any CRs from the text content of named child elements.- Parameters:
signature- TheSignatureelement to process.elementName- The element name within the XML DSIG namespace to look for.
-
ensureNLsWrapNamedChildren
private static void ensureNLsWrapNamedChildren(@Nonnull Element signature, @Nonnull String elementName)Ensure a named child element is in a NL - value - NL format.- Parameters:
signature- TheSignatureelement to process.elementName- The element name within the XML DSIG namespace to look for.
-
-