aboutsummaryrefslogtreecommitdiff
path: root/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common
diff options
context:
space:
mode:
Diffstat (limited to 'moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common')
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Base64Transform.java7
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/CanonicalizationTransform.java9
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/CheckResult.java12
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Content.java26
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentBinary.java13
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentLocRef.java13
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentReference.java3
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentXML.java7
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ElementSelector.java16
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/EnvelopedSignatureTransform.java7
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ExclusiveCanonicalizationTransform.java13
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ExtendedCertificateCheckResult.java50
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/InputData.java55
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/MetaInfo.java24
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/SignerInfo.java76
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/TSLConfiguration.java65
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Transform.java7
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/TslInfos.java78
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/X509IssuerSerial.java12
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XMLDataObjectAssociation.java13
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathFilter.java29
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathFilter2Transform.java15
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathTransform.java22
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XSLTTransform.java11
24 files changed, 285 insertions, 298 deletions
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Base64Transform.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Base64Transform.java
index 6050d5b..e1c650f 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Base64Transform.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Base64Transform.java
@@ -21,17 +21,16 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
/**
* A <code>Transform</code> performing a Base64 decoding.
- *
+ *
* @author Patrick Peck
* @version $Id$
*/
public interface Base64Transform extends Transform {
/** Algorithm URI of the Base64 <code>Transform</code> type. */
- public static final String BASE64_DECODING =
- "http://www.w3.org/2000/09/xmldsig#base64";
+ String BASE64_DECODING =
+ "http://www.w3.org/2000/09/xmldsig#base64";
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/CanonicalizationTransform.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/CanonicalizationTransform.java
index 05977c5..680061d 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/CanonicalizationTransform.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/CanonicalizationTransform.java
@@ -21,21 +21,20 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
import at.gv.egovernment.moaspss.util.Constants;
/**
* A canonicalization type of <code>Transform</code>.
- *
+ *
* @author Patrick Peck
* @version $Id$
*/
public interface CanonicalizationTransform extends Transform {
/** Algorithm URI of canonical XML. */
- public static final String CANONICAL_XML = Constants.C14N_URI;
+ String CANONICAL_XML = Constants.C14N_URI;
/** Algorithm URI of canonical XML with comments. */
- public static final String CANONICAL_XML_WITH_COMMENTS =
- Constants.C14N_WITH_COMMENTS_URI;
+ String CANONICAL_XML_WITH_COMMENTS =
+ Constants.C14N_WITH_COMMENTS_URI;
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/CheckResult.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/CheckResult.java
index 5c94981..4a9ff27 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/CheckResult.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/CheckResult.java
@@ -21,14 +21,13 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
import org.w3c.dom.NodeList;
/**
* Object encapsulating the result of a signature verification.
- *
+ *
* @author Patrick Peck
* @author Stephan Grill
* @version $Id$
@@ -36,14 +35,15 @@ import org.w3c.dom.NodeList;
public interface CheckResult {
/**
* Gets the result code.
- *
+ *
* @return The result code.
*/
- public int getCode();
+ int getCode();
+
/**
* Gets descriptive information.
- *
+ *
* @return Descriptive information.
*/
- public NodeList getInfo();
+ NodeList getInfo();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Content.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Content.java
index efde1eb..d9adb68 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Content.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Content.java
@@ -21,12 +21,11 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
/**
* Encapsulates content data.
- *
+ *
* @author Patrick Peck
* @author Stephan Grill
* @author Gregor Karlinger
@@ -35,37 +34,38 @@ package at.gv.egovernment.moa.spss.api.common;
public interface Content {
/**
- * Indicates that this object contains a URI reference to some content.
+ * Indicates that this object contains a URI reference to some content.
*/
- public static final int REFERENCE_CONTENT = 0;
+ int REFERENCE_CONTENT = 0;
/**
* Indicates that this object contains binary content.
*/
- public static final int BINARY_CONTENT = 1;
+ int BINARY_CONTENT = 1;
/**
* Indicates that this object contains XML content.
*/
- public static final int XML_CONTENT = 2;
-
+ int XML_CONTENT = 2;
+
/**
* Indicates that this object contains a location reference content.
*/
- public static final int LOCREF_CONTENT = 3;
+ int LOCREF_CONTENT = 3;
/**
* Gets the type of content contained in this object.
- *
- * @return The type of content, one of <code>BINARY_CONTENT</code>, <code>XML_CONTENT</code>, <code>
+ *
+ * @return The type of content, one of <code>BINARY_CONTENT</code>,
+ * <code>XML_CONTENT</code>, <code>
* REFERENCE_CONTENT</code> or <code>LOCREF_CONTENT</code>.
*/
- public int getContentType();
+ int getContentType();
/**
* Gets the reference to the content data (a URI).
- *
+ *
* @return The reference to the content data.
*/
- public String getReference();
+ String getReference();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentBinary.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentBinary.java
index 77ec9dd..a30c5f8 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentBinary.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentBinary.java
@@ -21,14 +21,13 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
import java.io.InputStream;
/**
* Encapsulates binary content.
- *
+ *
* @author Patrick Peck
* @author Stephan Grill
* @version $Id$
@@ -36,10 +35,10 @@ import java.io.InputStream;
public interface ContentBinary extends Content {
/**
* Get the binary content.
- *
- * @return An <code>InputStream</code> from which the binary content can
- * be read.
+ *
+ * @return An <code>InputStream</code> from which the binary content can be
+ * read.
*/
- public InputStream getBinaryContent();
-
+ InputStream getBinaryContent();
+
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentLocRef.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentLocRef.java
index d1ef096..59c96cb 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentLocRef.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentLocRef.java
@@ -21,21 +21,20 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
/**
* Encapsulates location reference content.
- *
+ *
* @author Gregor Karlinger
* @version $Id$
*/
-public interface ContentLocRef extends Content
-{
+public interface ContentLocRef extends Content {
/**
- * Gets the location reference URI pointing to the actual remote location of the content.
- *
+ * Gets the location reference URI pointing to the actual remote location of the
+ * content.
+ *
* @return the location reference URI.
*/
- public String getLocationReferenceURI();
+ String getLocationReferenceURI();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentReference.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentReference.java
index 8c4a658..5650939 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentReference.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentReference.java
@@ -21,12 +21,11 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
/**
* Content containing a reference to content data.
- *
+ *
* @author Patrick Peck
* @version $Id$
*/
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentXML.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentXML.java
index d41f6a6..1f294b1 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentXML.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ContentXML.java
@@ -21,14 +21,13 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
import org.w3c.dom.NodeList;
/**
* Encapsulates arbitrary XML content.
- *
+ *
* @author Patrick Peck
* @author Stephan Grill
* @version $Id$
@@ -36,8 +35,8 @@ import org.w3c.dom.NodeList;
public interface ContentXML extends Content {
/**
* Gets the XML content stored in this object.
- *
+ *
* @return The XML content.
*/
- public NodeList getXMLContent();
+ NodeList getXMLContent();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ElementSelector.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ElementSelector.java
index b446c5f..9d29d9b 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ElementSelector.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ElementSelector.java
@@ -21,32 +21,32 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
import java.util.Map;
/**
- * A class containing data for selecting single elements using an XPath
+ * A class containing data for selecting single elements using an XPath
* expression.
- *
+ *
* Derived classes are used to point to the <code>CreateSignatureLocation</code>
* and the <code>VerifySignatureLocation</code>.
- *
+ *
* @author Patrick Peck
* @version $Id$
*/
public interface ElementSelector {
/**
* Gets the XPath expression pointing to a single element.
- *
+ *
* @return The XPath expression to select the signature parent element.
*/
- public String getXPathExpression();
+ String getXPathExpression();
+
/**
* Gets the namespace prefix to URI mapping to use when evaluating the XPath.
- *
+ *
* @return The namespace prefix to URI mapping.
*/
- public Map getNamespaceDeclarations();
+ Map getNamespaceDeclarations();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/EnvelopedSignatureTransform.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/EnvelopedSignatureTransform.java
index 8e6de87..816576a 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/EnvelopedSignatureTransform.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/EnvelopedSignatureTransform.java
@@ -21,12 +21,11 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
/**
* An enveloped signature type of <code>Transform</code>.
- *
+ *
* @author Patrick Peck
* @version $Id$
*/
@@ -34,6 +33,6 @@ public interface EnvelopedSignatureTransform extends Transform {
/**
* Algorithm URI of the enveloped signature type of <code>Transform</code>.
*/
- public static final String ENVELOPED_SIGNATURE =
- "http://www.w3.org/2000/09/xmldsig#enveloped-signature";
+ String ENVELOPED_SIGNATURE =
+ "http://www.w3.org/2000/09/xmldsig#enveloped-signature";
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ExclusiveCanonicalizationTransform.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ExclusiveCanonicalizationTransform.java
index 557ff21..18e452c 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ExclusiveCanonicalizationTransform.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ExclusiveCanonicalizationTransform.java
@@ -21,7 +21,6 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
import java.util.List;
@@ -30,22 +29,22 @@ import at.gv.egovernment.moaspss.util.Constants;
/**
* An exclusive canonicalization type of <code>Transform</code>.
- *
+ *
* @author Patrick Peck
* @version $Id$
*/
public interface ExclusiveCanonicalizationTransform extends Transform {
/** Algorithm URI of exclusive canonical XML. */
- public static final String EXCLUSIVE_CANONICAL_XML = Constants.EXC_C14N_URI;
+ String EXCLUSIVE_CANONICAL_XML = Constants.EXC_C14N_URI;
/** Algorithm URI of exclusive canonical XML with comments. */
- public static final String EXCLUSIVE_CANONICAL_XML_WITH_COMMENTS =
- Constants.EXC_C14N_WITH_COMMENTS_URI;
+ String EXCLUSIVE_CANONICAL_XML_WITH_COMMENTS =
+ Constants.EXC_C14N_WITH_COMMENTS_URI;
/**
* Sets the namespace prefixes that are handled in the same manner as in
* canonical XML.
- *
+ *
* @return The inclusive namespace prefixes.
*/
- public List getInclusiveNamespacePrefixes();
+ List getInclusiveNamespacePrefixes();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ExtendedCertificateCheckResult.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ExtendedCertificateCheckResult.java
index 494b216..afc783e 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ExtendedCertificateCheckResult.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/ExtendedCertificateCheckResult.java
@@ -1,33 +1,31 @@
package at.gv.egovernment.moa.spss.api.common;
-import org.w3c.dom.NodeList;
-
public interface ExtendedCertificateCheckResult {
- /**
- * Gets the result code.
- *
- * @return The result code.
- */
- public int getMajorCode();
+ /**
+ * Gets the result code.
+ *
+ * @return The result code.
+ */
+ int getMajorCode();
- /**
- * Gets descriptive information.
- *
- * @return Descriptive information.
- */
- public String getMajorInfo();
+ /**
+ * Gets descriptive information.
+ *
+ * @return Descriptive information.
+ */
+ String getMajorInfo();
- /**
- * Gets the result code.
- *
- * @return The result code.
- */
- public int getMinorCode();
+ /**
+ * Gets the result code.
+ *
+ * @return The result code.
+ */
+ int getMinorCode();
- /**
- * Gets descriptive information.
- *
- * @return Descriptive information.
- */
- public String getMinorInfo();
+ /**
+ * Gets descriptive information.
+ *
+ * @return Descriptive information.
+ */
+ String getMinorInfo();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/InputData.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/InputData.java
index 8f8a714..b9c75bb 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/InputData.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/InputData.java
@@ -21,45 +21,42 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
/**
- * Interface specifying accessors for two attributes needed for returning
- * <code>HashInputData</code> and <code>ReferenceInputData</code> information
- * as part of <code>VerifyXMLSignatureResponse</code>.
- *
+ * Interface specifying accessors for two attributes needed for returning
+ * <code>HashInputData</code> and <code>ReferenceInputData</code> information as
+ * part of <code>VerifyXMLSignatureResponse</code>.
+ *
* @author Gregor Karlinger
- *
+ *
* @version $Id$
*/
-public interface InputData extends Content
-{
+public interface InputData extends Content {
/**
- * Possible value returned by {@link #getPartOf}.
+ * Possible value returned by {@link #getPartOf}.
*/
- public static String CONTAINER_SIGNEDINFO_ = "SignedInfo";
+ String CONTAINER_SIGNEDINFO_ = "SignedInfo";
/**
- * Possible value returned by {@link #getPartOf}.
+ * Possible value returned by {@link #getPartOf}.
*/
- public static String CONTAINER_XMLDSIGMANIFEST_ = "XMLDSIGManifest";
-
+ String CONTAINER_XMLDSIGMANIFEST_ = "XMLDSIGManifest";
+
/**
* Value returned by {link getReferringReferenceNumber}, signalling that the
* attribute is not used.
*/
- public static int REFERER_NONE_ = -1;
-
+ int REFERER_NONE_ = -1;
+
/**
- * Returns a <code>String</code> signalling what kind of container the
- * XMLDSIG <code>Reference</code> this <code>InputData</code> belongs
- * to is part of.
- *
- * @return the kind of container.
+ * Returns a <code>String</code> signalling what kind of container the XMLDSIG
+ * <code>Reference</code> this <code>InputData</code> belongs to is part of.
+ *
+ * @return the kind of container.
*/
- public String getPartOf();
-
+ String getPartOf();
+
/**
* If this <code>InputData</code> belongs to an XMLDSIG <code>Reference</code>
* being part of either a XMLDSIGManifest or a SignatureManifest, this method
@@ -67,14 +64,14 @@ public interface InputData extends Content
* of the XMLDSIG <code>SignedInfo</code> referring to the XMLDSIGManifest or
* SignatureManifest respectively.
*/
- public int getReferringReferenceNumber();
-
-
+ int getReferringReferenceNumber();
+
/**
- * Returns an identifier of the hash algorithm that is used to hash this {@link InputData}
- *
+ * Returns an identifier of the hash algorithm that is used to hash this
+ * {@link InputData}
+ *
* @return
*/
- public String getHashAlgorithm();
-
+ String getHashAlgorithm();
+
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/MetaInfo.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/MetaInfo.java
index 2413229..8c1b270 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/MetaInfo.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/MetaInfo.java
@@ -21,14 +21,13 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
import org.w3c.dom.NodeList;
/**
* Object encapsulating descriptive meta information.
- *
+ *
* @author Patrick Peck
* @author Stephan Grill
* @version $Id$
@@ -36,26 +35,29 @@ import org.w3c.dom.NodeList;
public interface MetaInfo {
/**
* Gets the mime type of the associated object.
- *
+ *
* @return The mimetype of the associated object.
*/
- public String getMimeType();
+ String getMimeType();
+
/**
* Gets the descriptive information (URI).
- *
+ *
* @return URI referencing the descriptive information.
*/
- public String getDescription();
+ String getDescription();
+
/**
* Gets the elemental informations.
- *
+ *
* @return The elemental informations.
- */
- public NodeList getAnyElements();
+ */
+ NodeList getAnyElements();
+
/**
* Gets the XML signature creation type information of the associated object.
- *
+ *
* @return the XML signature creation type information of the associated object.
*/
- public String getType();
+ String getType();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/SignerInfo.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/SignerInfo.java
index bb3dfdf..07b5f7f 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/SignerInfo.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/SignerInfo.java
@@ -21,16 +21,14 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
import java.security.cert.X509Certificate;
import java.util.Date;
-
/**
* Contains information about the signer.
- *
+ *
* @author Patrick Peck
* @author Stephan Grill
* @version $Id$
@@ -38,65 +36,69 @@ import java.util.Date;
public interface SignerInfo {
/**
* Gets the signer certificate.
- *
+ *
* @return The signer certificate.
- */
- public X509Certificate getSignerCertificate();
+ */
+ X509Certificate getSignerCertificate();
+
/**
* Checks, whether the certificate contained in this object is qualified.
- *
+ *
* @return <code>true</code>, if the certificate is qualified, otherwise
- * <code>false</code>.
+ * <code>false</code>.
*/
- public boolean isQualifiedCertificate();
-
-
+ boolean isQualifiedCertificate();
+
/**
* Checks, whether the signature is based on a SSCD.
- *
+ *
* @return <code>true</code>, if the signature is based on a SSCD, otherwise
- * <code>false</code>.
+ * <code>false</code>.
*/
- public boolean isSSCD();
-
+ boolean isSSCD();
+
/**
- * Returns the source of the SSCD check (TSL or Certificate) *
+ * Returns the source of the SSCD check (TSL or Certificate) *
*/
- public String getSSCDSource();
+ String getSSCDSource();
/**
- * Returns the source of the QC check (TSL or Certificate) *
+ * Returns the source of the QC check (TSL or Certificate) *
*/
- public String getQCSource();
+ String getQCSource();
/**
* Returns the signer certificate issuer country code
+ *
* @return
*/
- public String getIssuerCountryCode();
+ String getIssuerCountryCode();
+
/**
- * Checks, whether the certificate contained in this object is a
- * public authority certificate.
- *
- * @return <code>true</code>, if the certificate is a public authority
- * certificate, otherwise <code>false</code>.
+ * Checks, whether the certificate contained in this object is a public
+ * authority certificate.
+ *
+ * @return <code>true</code>, if the certificate is a public authority
+ * certificate, otherwise <code>false</code>.
*/
- public boolean isPublicAuthority();
+ boolean isPublicAuthority();
+
/**
- * Gets the public authority ID, if the certificate contained in this
- * object is from a public authority.
- *
+ * Gets the public authority ID, if the certificate contained in this object is
+ * from a public authority.
+ *
* @return The public authority ID.
- */
- public String getPublicAuhtorityID();
+ */
+ String getPublicAuhtorityID();
+
+ Date getSigningTime();
- public Date getSigningTime();
-
/**
* Gets information from the Trust-Status List for this certificate
- *
- * @return {@link TslInfos} if the certificate is on the Trust-Status List, otherwise null
+ *
+ * @return {@link TslInfos} if the certificate is on the Trust-Status List,
+ * otherwise null
*/
- public TslInfos getTslInfos();
-
+ TslInfos getTslInfos();
+
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/TSLConfiguration.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/TSLConfiguration.java
index be6fe4b..8d0a9fa 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/TSLConfiguration.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/TSLConfiguration.java
@@ -21,67 +21,64 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
-
-import iaik.xml.crypto.utils.URI;
-
import java.util.Date;
import java.util.List;
+import iaik.xml.crypto.utils.URI;
/**
* Contains TSL configuration information.
- *
+ *
* @author kstranacher
*/
public interface TSLConfiguration {
-
- /** Default URL of EU TSL */
- public String DEFAULT_EU_TSL_URL = "https://ec.europa.eu/tools/lotl/eu-lotl.xml";
-
- /** Default period (1day=86400000 msec) for update schedule */
- public String DEFAULT_UPDATE_SCHEDULE_PERIOD = "86400000";
-
- /** Default start time (2:00 AM) for update schedule */
- public String DEFAULT_UPDATE_SCHEDULE_STARTTIME = "02:00:00";
-
- public String DEFAULT_WORKING_DIR = "tslworking";
-
+
+ /** Default URL of EU TSL */
+ String DEFAULT_EU_TSL_URL = "https://ec.europa.eu/tools/lotl/eu-lotl.xml";
+
+ /** Default period (1day=86400000 msec) for update schedule */
+ String DEFAULT_UPDATE_SCHEDULE_PERIOD = "86400000";
+
+ /** Default start time (2:00 AM) for update schedule */
+ String DEFAULT_UPDATE_SCHEDULE_STARTTIME = "02:00:00";
+
+ String DEFAULT_WORKING_DIR = "tslworking";
+
/**
* Gets the EU TSL URL.
- *
+ *
* @return The EU TSL URL.
- */
- public String getEuTSLUrl();
+ */
+ String getEuTSLUrl();
/**
- *
+ *
* @return
*/
- public Date getUpdateScheduleStartTime();
-
+ Date getUpdateScheduleStartTime();
+
/**
- *
+ *
* @return
*/
- public long getUpdateSchedulePeriod();
-
+ long getUpdateSchedulePeriod();
+
/**
- *
+ *
* @return
*/
- public String getWorkingDirectory();
-
+ String getWorkingDirectory();
+
/**
- *
+ *
* @return
*/
- public URI getWorkingDirectoryAsURI();
-
- public List<java.net.URI> getQualifierForQC();
+ URI getWorkingDirectoryAsURI();
+
+ List<java.net.URI> getQualifierForQC();
- public List<java.net.URI> getQualifierForSSCD();
+ List<java.net.URI> getQualifierForSSCD();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Transform.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Transform.java
index ad050b4..5b924c3 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Transform.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/Transform.java
@@ -21,20 +21,19 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
/**
* Base class for XMLDsig <code>Transform</code> elements.
- *
+ *
* @author Patrick Peck
* @version $Id$
*/
public interface Transform {
/**
* Gets the algorithm URI of this <code>Transform</code>.
- *
+ *
* @return The algorithm URI of this <code>Transform</code>.
*/
- public String getAlgorithmURI();
+ String getAlgorithmURI();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/TslInfos.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/TslInfos.java
index 2a04f96..34d28c4 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/TslInfos.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/TslInfos.java
@@ -3,47 +3,49 @@ package at.gv.egovernment.moa.spss.api.common;
import java.util.List;
/**
- * Trust-Status list information for a specific certificate
- * All informations and identifiers are according to the Trust-Status List specification
- *
+ * Trust-Status list information for a specific certificate All informations and
+ * identifiers are according to the Trust-Status List specification
+ *
* @author tlenz
*
*/
public interface TslInfos {
- /**
- * Gets the issuer country of the TSL
- *
- * @return
- */
- public String getTslIssuerCountry();
-
- /**
- * Gets the Service-Type Status of the TSP, which issues the analyzed certificate
- *
- * @return
- */
- public String getServiceTypeStatus();
-
- /**
- * Gets the Service-Type Identifier of the TSP, which issues the analyzed certificate
- *
- * @return
- */
- public String getServiceTypeIdentifier();
-
- /**
- * Gets additional qualifiers for the analyzed certificate
- *
- * @return
- */
- public List<String> getQualifiers();
-
- /**
- * Gets additional service information for the analyzed certificate
- *
- * @return
- */
- public List<String> getAdditionalServiceInformation();
-
+ /**
+ * Gets the issuer country of the TSL
+ *
+ * @return
+ */
+ String getTslIssuerCountry();
+
+ /**
+ * Gets the Service-Type Status of the TSP, which issues the analyzed
+ * certificate
+ *
+ * @return
+ */
+ String getServiceTypeStatus();
+
+ /**
+ * Gets the Service-Type Identifier of the TSP, which issues the analyzed
+ * certificate
+ *
+ * @return
+ */
+ String getServiceTypeIdentifier();
+
+ /**
+ * Gets additional qualifiers for the analyzed certificate
+ *
+ * @return
+ */
+ List<String> getQualifiers();
+
+ /**
+ * Gets additional service information for the analyzed certificate
+ *
+ * @return
+ */
+ List<String> getAdditionalServiceInformation();
+
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/X509IssuerSerial.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/X509IssuerSerial.java
index 39ec807..007fbe8 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/X509IssuerSerial.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/X509IssuerSerial.java
@@ -21,14 +21,13 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
import java.math.BigInteger;
/**
* Contains an X.509 issuer distinguished name/serial number pair.
- *
+ *
* @author Patrick Peck
* @author Stephan Grill
* @version $Id$
@@ -36,14 +35,15 @@ import java.math.BigInteger;
public interface X509IssuerSerial {
/**
* Gets the issuer distinguished name.
- *
+ *
* @return The issuer distinguished name.
*/
- public String getX509IssuerName();
+ String getX509IssuerName();
+
/**
* Gets the issuer serial number.
- *
+ *
* @return The issuer serial number.
*/
- public BigInteger getX509SerialNumber();
+ BigInteger getX509SerialNumber();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XMLDataObjectAssociation.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XMLDataObjectAssociation.java
index fe2a795..7b3f830 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XMLDataObjectAssociation.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XMLDataObjectAssociation.java
@@ -21,14 +21,12 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
-
/**
* Object encapsulating arbitrary content and optional descriptive meta
* information.
- *
+ *
* @author Patrick Peck
* @author Stephan Grill
* @version $Id$
@@ -36,14 +34,15 @@ package at.gv.egovernment.moa.spss.api.common;
public interface XMLDataObjectAssociation {
/**
* Gets descriptive meta information.
- *
+ *
* @return The descriptive meta information.
*/
- public MetaInfo getMetaInfo();
+ MetaInfo getMetaInfo();
+
/**
* Gets the actual content.
- *
+ *
* @return The content of this association.
*/
- public Content getContent();
+ Content getContent();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathFilter.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathFilter.java
index 06a49a2..f3a12dc 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathFilter.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathFilter.java
@@ -21,42 +21,43 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
import java.util.Map;
/**
* An XPath expression set operation.
- *
+ *
* @author Patrick Peck
* @version $Id$
*/
public interface XPathFilter {
/** Subtract this filter's node set from the resulting node set. */
- public static final String SUBTRACT_TYPE = "subtract";
+ String SUBTRACT_TYPE = "subtract";
/** Intersect this filter's node set with the resulting node set. */
- public static final String INTERSECT_TYPE = "intersect";
+ String INTERSECT_TYPE = "intersect";
/** Compute the union of this filter's node set and the resulting node set. */
- public static final String UNION_TYPE = "union";
-
+ String UNION_TYPE = "union";
+
/**
* Gets the type of this <code>XPathFilter</code>.
- *
+ *
* @return The type of this <code>XPathFilter</code>.
*/
- public String getFilterType();
+ String getFilterType();
+
/**
* Gets the XPath expression for selecting the nodes.
- *
+ *
* @return The XPath expression for selecting the nodes.
*/
- public String getXPathExpression();
+ String getXPathExpression();
+
/**
- * Gets The namespace prefix to URI mapping used during evaluation of the
- * XPath expression.
- *
+ * Gets The namespace prefix to URI mapping used during evaluation of the XPath
+ * expression.
+ *
* @return The namespace prefix to URI mapping.
*/
- public Map getNamespaceDeclarations();
+ Map getNamespaceDeclarations();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathFilter2Transform.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathFilter2Transform.java
index 6f05710..b5899a4 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathFilter2Transform.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathFilter2Transform.java
@@ -21,29 +21,28 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
import java.util.List;
/**
* An XPath type of <code>Transform</code> containing multiple filters for
- * performing set operations on XPath selections.
- *
+ * performing set operations on XPath selections.
+ *
* @author Patrick Peck
* @version $Id$
*/
public interface XPathFilter2Transform extends Transform {
/** Algorithm URI for the XPath Filter2 <code>Transform</code>. */
- public static final String XPATH_FILTER2 =
- "http://www.w3.org/2002/06/xmldsig-filter2";
+ String XPATH_FILTER2 =
+ "http://www.w3.org/2002/06/xmldsig-filter2";
/**
- * Gets the <code>XPathFilter</code>s contained in this
+ * Gets the <code>XPathFilter</code>s contained in this
* <code>XPathFilter2Transform</code>.
- *
+ *
* @return The <code>XPathFilter</code>s.
*/
- public List getFilters();
+ List getFilters();
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathTransform.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathTransform.java
index 99eda2a..41227c5 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathTransform.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XPathTransform.java
@@ -21,34 +21,34 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
import java.util.Map;
/**
* A <code>Transform</code> performing an XPath selection.
- *
+ *
* @author Patrick Peck
* @version $Id$
*/
public interface XPathTransform extends Transform {
/** Algorithm URI of the XPath <code>Transform</code>. */
- public static final String XPATH =
- "http://www.w3.org/TR/1999/REC-xpath-19991116";
+ String XPATH =
+ "http://www.w3.org/TR/1999/REC-xpath-19991116";
/**
* Gets the XPath expression used for selection.
- *
+ *
* @return The XPath expression used for selection.
*/
- public String getXPathExpression();
+ String getXPathExpression();
+
/**
- * Gets The namespace prefix to URI mapping used during evaluation of the
- * XPath expression.
- *
+ * Gets The namespace prefix to URI mapping used during evaluation of the XPath
+ * expression.
+ *
* @return The namespace prefix to URI mapping.
*/
- public Map getNamespaceDeclarations();
-
+ Map getNamespaceDeclarations();
+
}
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XSLTTransform.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XSLTTransform.java
index 8cb6c8e..bdfd2eb 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XSLTTransform.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/api/common/XSLTTransform.java
@@ -21,27 +21,26 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moa.spss.api.common;
import org.w3c.dom.Element;
/**
* A <code>Transform</code> containing an XSLT stylesheet.
- *
+ *
* @author Patrick Peck
* @version $Id$
*/
public interface XSLTTransform extends Transform {
/** Algorithm URI for the XSLT type of <code>Transform</code>. */
- public static final String XSLT =
- "http://www.w3.org/TR/1999/REC-xslt-19991116";
+ String XSLT =
+ "http://www.w3.org/TR/1999/REC-xslt-19991116";
/**
* Gets the XSLT stylesheet element used for the transformation.
- *
+ *
* @return The XSLT stylesheet element used for the transformation.
*/
- public Element getStylesheet();
+ Element getStylesheet();
}