You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by de...@apache.org on 2013/12/02 20:10:01 UTC
svn commit: r1547151 - in /uima/sandbox/uima-ducc/trunk/uima-ducc-examples:
./ src/main/java/org/apache/uima/ducc/example/authentication/module/
src/main/java/org/apache/uima/ducc/example/authentication/site/
Author: degenaro
Date: Mon Dec 2 19:10:01 2013
New Revision: 1547151
URL: http://svn.apache.org/r1547151
Log:
UIMA-3461 DUCC uima-ducc-examples has extraneous jar files in folder lib: ducc- and site-authenticator
Modified:
uima/sandbox/uima-ducc/trunk/uima-ducc-examples/build-ducc-authenticator-jar.xml
uima/sandbox/uima-ducc/trunk/uima-ducc-examples/build-site-authenticator-jar.xml
uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/example/authentication/module/AuthenticationManager.java
uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/example/authentication/site/SiteSecurity.java
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-examples/build-ducc-authenticator-jar.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-examples/build-ducc-authenticator-jar.xml?rev=1547151&r1=1547150&r2=1547151&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-examples/build-ducc-authenticator-jar.xml (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-examples/build-ducc-authenticator-jar.xml Mon Dec 2 19:10:01 2013
@@ -19,6 +19,21 @@
***************************************************************
-->
+ <!--
+ * This is a sample ant script to build a jar file named
+ * ducc-authenticator.jar comprising the sample class
+ * AuthenticationManager.
+ *
+ * If one wanted to utilize this class for authentication
+ * (not recommended as-is since authentication always succeeds!)
+ * one would build the jar file and then:
+ * 1. include it and any of its dependency jars
+ * (see build-site-authenticator-jar) in the directory
+ * ~ducc/ducc_runtime/lib/authentication
+ * 2. update ducc.properties to include the property:
+ * ducc.local.jars authentication/*
+ -->
+
<project name="uima-ducc-examples" default="build" basedir=".">
<property name="TGT-LIB" value="${basedir}/lib" />
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-examples/build-site-authenticator-jar.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-examples/build-site-authenticator-jar.xml?rev=1547151&r1=1547150&r2=1547151&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-examples/build-site-authenticator-jar.xml (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-examples/build-site-authenticator-jar.xml Mon Dec 2 19:10:01 2013
@@ -19,6 +19,20 @@
***************************************************************
-->
+ <!--
+ * This is a sample ant script to build a jar file named
+ * site-authenticator.jar comprising the sample class
+ * SiteSecurity.
+ *
+ * If one wanted to utilize this class for authentication
+ * (not recommended as-is since authentication always succeeds!)
+ * one would build the jar file and then:
+ * 1. include it and any of its dependency jars
+ * (see build-site-authenticator-jar) in the directory
+ * ~ducc/ducc_runtime/lib/authentication
+ * 2. update ducc.properties to include the property:
+ * ducc.local.jars authentication/*
+ -->
<project name="uima-ducc-examples" default="build" basedir=".">
<property name="TGT-LIB" value="${basedir}/lib" />
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/example/authentication/module/AuthenticationManager.java
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/example/authentication/module/AuthenticationManager.java?rev=1547151&r1=1547150&r2=1547151&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/example/authentication/module/AuthenticationManager.java (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/example/authentication/module/AuthenticationManager.java Mon Dec 2 19:10:01 2013
@@ -19,12 +19,23 @@ package org.apache.uima.ducc.example.aut
* under the License.
***************************************************************/
-
import org.apache.uima.ducc.common.authentication.AuthenticationResult;
import org.apache.uima.ducc.common.authentication.IAuthenticationManager;
import org.apache.uima.ducc.common.authentication.IAuthenticationResult;
import org.apache.uima.ducc.example.authentication.site.SiteSecurity;
+/*
+ * This is a skeleton sample Java class that implements the
+ * plug-in interface for Web-server Login authentication.
+ *
+ * The methods in this class delegate to another skeleton sample
+ * Java class, SiteSecurity, to perform the user and group
+ * authentications.
+ *
+ * See also the DUCC Installation and Verification Guide.
+ *
+ */
+
public class AuthenticationManager implements IAuthenticationManager {
private final String version = "example 1.0";
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/example/authentication/site/SiteSecurity.java
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/example/authentication/site/SiteSecurity.java?rev=1547151&r1=1547150&r2=1547151&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/example/authentication/site/SiteSecurity.java (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/java/org/apache/uima/ducc/example/authentication/site/SiteSecurity.java Mon Dec 2 19:10:01 2013
@@ -1,24 +1,35 @@
+package org.apache.uima.ducc.example.authentication.site;
+
+/***************************************************************
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+***************************************************************/
+
/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
+ * This is a skeleton sample Java class that is employed by
+ * the sample Java class AuthenticationManager.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * The methods in this class always return true, meaning
+ * authentication is successful.
+ *
+ * See also the DUCC Installation and Verification Guide.
*
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
*/
-package org.apache.uima.ducc.example.authentication.site;
-
public class SiteSecurity {
public static boolean isAuthenticUser(String userid, String domain,