Class XAdESNamespaces


  • public final class XAdESNamespaces
    extends Object
    This enum contains all known XAdES version with their namespace.
    • Method Detail

      • getXAdESDefaultNamespace

        public static String getXAdESDefaultNamespace()
        This getter returns the default namespace as defined. Default : XADES132 ("http://uri.etsi.org/01903/v1.3.2#")
        Returns:
        String default namespace
      • setXAdESDefaultNamespace

        public static void setXAdESDefaultNamespace​(String XAdES)
        This setter allows to change the default XAdES namespace. It can be useful when dealing with old applications. Note that there is no check on the value of the namespace. It's calling method responsibility.
        Parameters:
        XAdES - new default namespace
      • exists

        public static boolean exists​(String url)
        Checks if the url is related to XAdES namespace. XAdES141 is excluded from this test as it concerns only the archive timestamp.
        Parameters:
        url - the url to be tested
        Returns:
        true if the url is related to a XAdES namespace
      • getXADES_SIGNING_CERTIFICATE

        public static String getXADES_SIGNING_CERTIFICATE()
      • getXADES_SIGNING_CERTIFICATE_V2

        public static String getXADES_SIGNING_CERTIFICATE_V2()