diff options
Diffstat (limited to 'id/server')
18 files changed, 137 insertions, 74 deletions
| diff --git a/id/server/auth/.classpath b/id/server/auth/.classpath index d6e7fdeb6..6acd7de03 100644 --- a/id/server/auth/.classpath +++ b/id/server/auth/.classpath @@ -1,7 +1,14 @@  <?xml version="1.0" encoding="UTF-8"?>
  <classpath>
 +	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
 +	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
  	<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v5.0"/>
 -	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER/modules"/>
 +	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
 +		<attributes>
 +			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
 +		</attributes>
 +	</classpathentry>
  	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
 +	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
  	<classpathentry kind="output" path="target/classes"/>
  </classpath>
 diff --git a/id/server/auth/.project b/id/server/auth/.project index c397a88ee..90cbf1ff3 100644 --- a/id/server/auth/.project +++ b/id/server/auth/.project @@ -9,6 +9,11 @@  	</projects>
  	<buildSpec>
  		<buildCommand>
 +			<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
 +			<arguments>
 +			</arguments>
 +		</buildCommand>
 +		<buildCommand>
  			<name>org.eclipse.jdt.core.javabuilder</name>
  			<arguments>
  			</arguments>
 @@ -41,5 +46,6 @@  		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
  		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
  		<nature>kr.javanese.devtools.m2wtp.m2wtpNature</nature>
 +		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
  	</natures>
  </projectDescription>
 diff --git a/id/server/auth/.settings/org.eclipse.wst.common.component b/id/server/auth/.settings/org.eclipse.wst.common.component index 5f3e4a378..b116cf610 100644 --- a/id/server/auth/.settings/org.eclipse.wst.common.component +++ b/id/server/auth/.settings/org.eclipse.wst.common.component @@ -1,18 +1,17 @@  <?xml version="1.0" encoding="UTF-8"?>
  <project-modules id="moduleCoreId" project-version="1.5.0">
  <wb-module deploy-name="moa-id-auth">
 -<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
  <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
 -<dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/moa-id-lib/moa-id-lib">
 -<dependency-type>uses</dependency-type>
 -</dependent-module>
 -<dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/moa-spss-lib/moa-spss-lib">
 -<dependency-type>uses</dependency-type>
 -<wb-resource deploy-path="/WEB-INF/LIB" source-path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 -</dependent-module>
 +        <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
 +        <dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/moa-spss-lib/moa-spss-lib">
 +            <dependency-type>uses</dependency-type>
 +        </dependent-module>
          <dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/moa-common/moa-common">
              <dependency-type>uses</dependency-type>
          </dependent-module>
 +        <dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/moa-id-lib/moa-id-lib">
 +            <dependency-type>uses</dependency-type>
 +        </dependent-module>
  <property name="java-output-path" value="target/classes"/>
          <property name="context-root" value="moa-id-auth"/>
  </wb-module>
 diff --git a/id/server/auth/.settings/org.eclipse.wst.common.project.facet.core.xml b/id/server/auth/.settings/org.eclipse.wst.common.project.facet.core.xml index d0145894a..f30a1de6e 100644 --- a/id/server/auth/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/id/server/auth/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -1,5 +1,5 @@  <?xml version="1.0" encoding="UTF-8"?>
  <faceted-project>
 -  <installed facet="jst.web" version="2.4"/>
    <installed facet="jst.java" version="1.4"/>
 +  <installed facet="jst.web" version="2.3"/>
  </faceted-project>
 diff --git a/id/server/auth/pom.xml b/id/server/auth/pom.xml index d2aa59f2e..6d5a5538e 100644 --- a/id/server/auth/pom.xml +++ b/id/server/auth/pom.xml @@ -2,14 +2,14 @@  	<parent>  		<groupId>MOA.id</groupId>  		<artifactId>moa-id</artifactId> -		<version>1.4.4</version> +		<version>1.4.5</version>  	</parent>  	<modelVersion>4.0.0</modelVersion>  	<groupId>MOA.id.server</groupId>  	<artifactId>moa-id-auth</artifactId>  	<packaging>war</packaging> -	<version>1.4.4</version> +	<version>1.4.5</version>  	<name>MOA ID-Auth WebService</name>  	<properties> diff --git a/id/server/data/deploy/conf/moa-spss/SampleMOASPSSConfiguration.xml b/id/server/data/deploy/conf/moa-spss/SampleMOASPSSConfiguration.xml index 62337d0fb..c0e23ecb1 100644 --- a/id/server/data/deploy/conf/moa-spss/SampleMOASPSSConfiguration.xml +++ b/id/server/data/deploy/conf/moa-spss/SampleMOASPSSConfiguration.xml @@ -1,6 +1,6 @@  <?xml version="1.0" encoding="UTF-8"?>  <!--MOA SPSS 1.3 Configuration File created by MOA SPSS Configuration Mapper--> -<cfg:MOAConfiguration xmlns:cfg="http://reference.e-government.gv.at/namespace/moaconfig/20021122#" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"> +<cfg:MOAConfiguration xmlns:cfg="http://reference.e-government.gv.at/namespace/moaconfig/20090603#" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">  	<cfg:SignatureVerification>  		<cfg:CertificateValidation>  			<cfg:PathConstruction> diff --git a/id/server/doc/moa_id/id-admin_2.htm b/id/server/doc/moa_id/id-admin_2.htm index 80078c464..e3ceacba8 100644 --- a/id/server/doc/moa_id/id-admin_2.htm +++ b/id/server/doc/moa_id/id-admin_2.htm @@ -117,8 +117,8 @@ Projekt <span style="font-size:48pt; ">moa</span>             <p id="subtitel">Konfiguration von MOA ID v.1.4</p>            <p id="block"> Die Konfiguration von MOA ID wird mittels einer XML-basierten              Konfigurationsdatei, die dem Schema -            <a href="../MOA-ID-Configuration-1.4.3.xsd" target="_new">MOA-ID-Configuration-1.4.4.xsd</a> -            <a href="../MOA-ID-Configuration-1.4.3.xsd" target="_new">MOA-ID-Configuration-1.4.4.xsd</a> +            <a href="../MOA-ID-Configuration-1.4.3.xsd" target="_new">MOA-ID-Configuration-1.4.5.xsd</a> +            <a href="../MOA-ID-Configuration-1.4.3.xsd" target="_new">MOA-ID-Configuration-1.4.5.xsd</a>              entspricht, durchgeführt.            <p /> Der Ort der Konfigurationsdatei wird im Abschnitt <a href="id-admin_1.htm#deployment">Deployment              der Web-Applikation in Tomcat</a> beschrieben. diff --git a/id/server/idserverlib/.classpath b/id/server/idserverlib/.classpath index 01edb156d..1c79cc393 100644 --- a/id/server/idserverlib/.classpath +++ b/id/server/idserverlib/.classpath @@ -1,9 +1,9 @@  <?xml version="1.0" encoding="UTF-8"?>
  <classpath>
 -	<classpathentry kind="src" path="src/main/java"/>
 -	<classpathentry kind="src" path="src/test/java"/>
 -	<classpathentry excluding="**" kind="src" output="src/main/resources" path="src/main/resources"/>
 -	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 +	<classpathentry kind="src" output="target/classes" path="src/main/java"/>
 +	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
 +	<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
 +	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
  	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
  	<classpathentry kind="output" path="target/classes"/>
  </classpath>
 diff --git a/id/server/idserverlib/pom.xml b/id/server/idserverlib/pom.xml index ee3c5fc7f..c046b1f19 100644 --- a/id/server/idserverlib/pom.xml +++ b/id/server/idserverlib/pom.xml @@ -2,14 +2,14 @@  	<parent>
  		<groupId>MOA.id</groupId>
  		<artifactId>moa-id</artifactId>
 -		<version>1.4.4</version>
 +		<version>1.4.5</version>
  	</parent>
  	<modelVersion>4.0.0</modelVersion>
  	<groupId>MOA.id.server</groupId>
  	<artifactId>moa-id-lib</artifactId>
  	<packaging>jar</packaging>
 -	<version>1.4.4</version>
 +	<version>1.4.5</version>
  	<name>MOA ID API</name>
  	<properties>
 diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/iaik/config/RevocationConfigurationImpl.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/iaik/config/RevocationConfigurationImpl.java index 6f4de4ce1..cedaf2ccc 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/iaik/config/RevocationConfigurationImpl.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/iaik/config/RevocationConfigurationImpl.java @@ -48,4 +48,8 @@ public class RevocationConfigurationImpl extends ObservableImpl implements Revoc      return false;    } +  public Integer getCrlRetentionInterval(String arg0) { +     return null; +  } +  } diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/DefaultConnectionBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/DefaultConnectionBuilder.java index 34a1f389b..a742a0aae 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/DefaultConnectionBuilder.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/DefaultConnectionBuilder.java @@ -32,8 +32,8 @@ import at.gv.egovernment.moa.id.util.MOAIDMessageProvider;  import at.gv.egovernment.moa.logging.Logger;  import at.gv.egovernment.moa.util.BoolUtils; -import com.sun.net.ssl.HostnameVerifier; -import com.sun.net.ssl.HttpsURLConnection; +//import com.sun.net.ssl.HostnameVerifier; +//import com.sun.net.ssl.HttpsURLConnection;  /**   * Defaultimplementierung von <code>ConnectionBuilder</code>. @@ -96,12 +96,14 @@ public class DefaultConnectionBuilder implements ConnectionBuilder {      //conn.setUseCaches(false);      //conn.setAllowUserInteraction(true);      conn.setInstanceFollowRedirects(false); -    if (conn instanceof HttpsURLConnection && sslSocketFactory != null) { +     +    // JSSE-Abhängigkeit +    /*if (conn instanceof HttpsURLConnection && sslSocketFactory != null) {        HttpsURLConnection httpsConn = (HttpsURLConnection) conn;        httpsConn.setSSLSocketFactory(sslSocketFactory);        if (cbDisableHostnameVerification)          httpsConn.setHostnameVerifier(new HostnameNonVerifier()); -    } +    }*/      return conn;    } @@ -151,14 +153,17 @@ public class DefaultConnectionBuilder implements ConnectionBuilder {       * A private class to change the standard HostName verifier to disable the       * Hostname Verification Check       */ -  private class HostnameNonVerifier implements HostnameVerifier { +   +  // JSSE Abhängigkeit +  //private class HostnameNonVerifier implements HostnameVerifier {      /**       * @see com.sun.net.ssl.HostnameVerifier#verify(String, String)       */ -    public boolean verify(String arg0, String arg1) { -      return true; -    } -  } +//JSSE Abhängigkeit +//    public boolean verify(String arg0, String arg1) { +//      return true; +//    } +//  }  } diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/ElakConnectionBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/ElakConnectionBuilder.java index bc39044ac..c8c1e85d9 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/ElakConnectionBuilder.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/ElakConnectionBuilder.java @@ -38,8 +38,8 @@ import at.gv.egovernment.moa.id.util.MOAIDMessageProvider;  import at.gv.egovernment.moa.logging.Logger;  import at.gv.egovernment.moa.util.BoolUtils; -import com.sun.net.ssl.HostnameVerifier; -import com.sun.net.ssl.HttpsURLConnection; +//import com.sun.net.ssl.HostnameVerifier; +//import com.sun.net.ssl.HttpsURLConnection;  /**   * Defaultimplementierung von <code>ConnectionBuilder</code>. @@ -198,12 +198,13 @@ public class ElakConnectionBuilder implements ConnectionBuilder {      //conn.setUseCaches(false);      webDavConn.setAllowUserInteraction(true);      webDavConn.setInstanceFollowRedirects(false); -    if (conn instanceof HttpsURLConnection && sslSocketFactory != null) { -      HttpsURLConnection httpsConn = (HttpsURLConnection) conn; -      httpsConn.setSSLSocketFactory(sslSocketFactory); -      if (cbDisableHostnameVerification) -        httpsConn.setHostnameVerifier(new HostnameNonVerifier()); -    } +    // JSSE Abhängigkeit +//    if (conn instanceof HttpsURLConnection && sslSocketFactory != null) { +//      HttpsURLConnection httpsConn = (HttpsURLConnection) conn; +//      httpsConn.setSSLSocketFactory(sslSocketFactory); +//      if (cbDisableHostnameVerification) +//        httpsConn.setHostnameVerifier(new HostnameNonVerifier()); +//    }      return conn;    } @@ -251,14 +252,16 @@ public class ElakConnectionBuilder implements ConnectionBuilder {       * A private class to change the standard HostName verifier to disable the       * Hostname Verification Check       */ -  private class HostnameNonVerifier implements HostnameVerifier { +//JSSE Abhängigkeit +//  private class HostnameNonVerifier implements HostnameVerifier {      /**       * @see com.sun.net.ssl.HostnameVerifier#verify(String, String)       */ -    public boolean verify(String arg0, String arg1) { -      return true; -    } -  } +//JSSE Abhängigkeit +//    public boolean verify(String arg0, String arg1) { +//      return true; +//    } +//  }  } diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/EnhancedConnectionBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/EnhancedConnectionBuilder.java index 49affe745..9ce1e3c8e 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/EnhancedConnectionBuilder.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/EnhancedConnectionBuilder.java @@ -31,7 +31,7 @@ import at.gv.egovernment.moa.id.util.MOAIDMessageProvider;  import at.gv.egovernment.moa.logging.Logger;  import at.gv.egovernment.moa.util.BoolUtils; -import com.sun.net.ssl.HostnameVerifier; +//import com.sun.net.ssl.HostnameVerifier;  import HTTPClient.HttpURLConnection;  import HTTPClient.HTTPConnection; @@ -160,16 +160,18 @@ public class EnhancedConnectionBuilder implements ConnectionBuilder {  	     * A private class to change the standard HostName verifier to disable the  	     * Hostname Verification Check  	     */ -	  private class HostnameNonVerifier implements HostnameVerifier { +	// JSSE Abhängigkeit +	  //private class HostnameNonVerifier implements HostnameVerifier {  	    /**  	     * @see com.sun.net.ssl.HostnameVerifier#verify(String, String)  	     */ -	    public boolean verify(String arg0, String arg1) { -	      return true; -	    } -	  } -	   +	// JSSE Abhängigkeit   +//	  public boolean verify(String arg0, String arg1) { +//	      return true; +//	    } +//	  } +//	    	  /**  	   * Removes parameters from the query-URL recursively  	   * diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/SSLUtils.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/SSLUtils.java index 5f8e95925..bf38c40d9 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/SSLUtils.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/SSLUtils.java @@ -68,8 +68,9 @@ public class SSLUtils {     */    public static void initialize() {      sslSocketFactories = new HashMap(); -    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); -    System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol"); + // JSSE Abhängigkeit +//    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); +//    System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");    }    /** diff --git a/id/server/pom.xml b/id/server/pom.xml index 809aff640..497243114 100644 --- a/id/server/pom.xml +++ b/id/server/pom.xml @@ -4,14 +4,14 @@      <parent>
          <groupId>MOA</groupId>
          <artifactId>id</artifactId>
 -        <version>1.4.4</version>
 +        <version>1.4.5</version>
      </parent>
      <modelVersion>4.0.0</modelVersion>
      <groupId>MOA.id</groupId>
      <artifactId>moa-id</artifactId>
      <packaging>pom</packaging>
 -    <version>1.4.4</version>
 +    <version>1.4.5</version>
      <name>MOA ID Server</name>
      <modules>
 diff --git a/id/server/proxy/.classpath b/id/server/proxy/.classpath index 5d93de69c..af4743f8a 100644 --- a/id/server/proxy/.classpath +++ b/id/server/proxy/.classpath @@ -1,4 +1,12 @@ -<classpath> -  <classpathentry kind="output" path="target/classes"/> -  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> -</classpath>
\ No newline at end of file +<?xml version="1.0" encoding="UTF-8"?>
 +<classpath>
 +	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
 +	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
 +		<attributes>
 +			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
 +		</attributes>
 +	</classpathentry>
 +	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
 +	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
 +	<classpathentry kind="output" path="target/classes"/>
 +</classpath>
 diff --git a/id/server/proxy/.project b/id/server/proxy/.project index 4e175804c..d58c7c25c 100644 --- a/id/server/proxy/.project +++ b/id/server/proxy/.project @@ -1,14 +1,42 @@ -<projectDescription> -  <name>moa-id-proxy</name> -  <comment/> -  <projects/> -  <buildSpec> -    <buildCommand> -      <name>org.eclipse.jdt.core.javabuilder</name> -      <arguments/> -    </buildCommand> -  </buildSpec> -  <natures> -    <nature>org.eclipse.jdt.core.javanature</nature> -  </natures> -</projectDescription>
\ No newline at end of file +<?xml version="1.0" encoding="UTF-8"?>
 +<projectDescription>
 +	<name>moa-id-proxy</name>
 +	<comment></comment>
 +	<projects>
 +	</projects>
 +	<buildSpec>
 +		<buildCommand>
 +			<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
 +			<arguments>
 +			</arguments>
 +		</buildCommand>
 +		<buildCommand>
 +			<name>org.eclipse.wst.common.project.facet.core.builder</name>
 +			<arguments>
 +			</arguments>
 +		</buildCommand>
 +		<buildCommand>
 +			<name>org.eclipse.jdt.core.javabuilder</name>
 +			<arguments>
 +			</arguments>
 +		</buildCommand>
 +		<buildCommand>
 +			<name>org.eclipse.wst.validation.validationbuilder</name>
 +			<arguments>
 +			</arguments>
 +		</buildCommand>
 +		<buildCommand>
 +			<name>org.maven.ide.eclipse.maven2Builder</name>
 +			<arguments>
 +			</arguments>
 +		</buildCommand>
 +	</buildSpec>
 +	<natures>
 +		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
 +		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
 +		<nature>org.maven.ide.eclipse.maven2Nature</nature>
 +		<nature>org.eclipse.jdt.core.javanature</nature>
 +		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
 +		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
 +	</natures>
 +</projectDescription>
 diff --git a/id/server/proxy/pom.xml b/id/server/proxy/pom.xml index 2255d6c01..da63b2d55 100644 --- a/id/server/proxy/pom.xml +++ b/id/server/proxy/pom.xml @@ -2,7 +2,7 @@  	<parent>
  		<groupId>MOA.id</groupId>
  		<artifactId>moa-id</artifactId>
 -		<version>1.4.4</version>
 +		<version>1.4.5</version>
  	</parent>
  	<properties>
 @@ -13,7 +13,7 @@  	<groupId>MOA.id.server</groupId>
  	<artifactId>moa-id-proxy</artifactId>
  	<packaging>war</packaging>
 -	<version>1.4.4</version>
 +	<version>1.4.5</version>
  	<name>MOA ID-Proxy WebService</name>
  	<build>
 | 
