Package eu.europa.esig.dss
Class XAdESNamespaces
- java.lang.Object
-
- eu.europa.esig.dss.XAdESNamespaces
-
public final class XAdESNamespaces extends Object
This enum contains all known XAdES version with their namespace.
-
-
Method Summary
Modifier and Type Method Description static booleanexists(String url)Checks if the url is related to XAdES namespace.static StringgetXADES_SIGNING_CERTIFICATE()static StringgetXADES_SIGNING_CERTIFICATE_V2()static StringgetXAdESDefaultNamespace()This getter returns the default namespace as defined.static voidsetXAdESDefaultNamespace(String XAdES)This setter allows to change the default XAdES namespace.
-
-
-
Field Detail
-
XAdES141
public static final String XAdES141
- See Also:
- Constant Field Values
-
XAdES132
public static final String XAdES132
- See Also:
- Constant Field Values
-
XAdES122
public static final String XAdES122
- See Also:
- Constant Field Values
-
XAdES111
public static final String XAdES111
- See Also:
- Constant Field Values
-
XADES_SIGNING_CERTIFICATE
protected static String XADES_SIGNING_CERTIFICATE
-
XADES_SIGNING_CERTIFICATE_V2
protected static String XADES_SIGNING_CERTIFICATE_V2
-
-
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:
Stringdefault 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()
-
-