Fork me on GitHub

Rat (Release Audit Tool) results

The following document contains the results of Rat (Release Audit Tool).

*****************************************************
Summary
-------
Generated at: 2017-03-11T23:57:40-05:00

Notes: 0
Binaries: 0
Archives: 0
Standards: 7

Apache Licensed: 0
Generated Documents: 0

JavaDocs are generated, thus a license header is optional.
Generated files do not require license headers.

7 Unknown Licenses

*****************************************************

Files with unapproved licenses:

  C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/pom.xml
  C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/InitialContextFactoryForTest.java
  C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/MyHttpServletRequest.java
  C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/MyMessageContext.java
  C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/MyWebServiceContext.java
  C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/SimplePrincipal.java
  C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/WebServiceBaseTests.java

*****************************************************

*****************************************************
  Files with Apache License headers will be marked AL
  Binary files (which do not require any license headers) will be marked B
  Compressed archives will be marked A
  Notices, licenses etc. will be marked N
 !????? C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/pom.xml
 !????? C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/InitialContextFactoryForTest.java
 !????? C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/MyHttpServletRequest.java
 !????? C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/MyMessageContext.java
 !????? C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/MyWebServiceContext.java
 !????? C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/SimplePrincipal.java
 !????? C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/WebServiceBaseTests.java
 
*****************************************************

 Printing headers for text files without a valid license header...
 
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/pom.xml
=====================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at http://mozilla.org/MPL/2.0/.

 If it is not possible or desirable to put the notice in a particular
 file, then You may include the notice in a location (such as a LICENSE
 file in a relevant directory) where a recipient would be likely to look
 for such a notice.

 

 
 U.S. Government, Department of the Army
 Army Materiel Command
 Research Development Engineering Command
 Communications Electronics Research Development and Engineering Center

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.mil-oss</groupId>
		<artifactId>fgsms-server</artifactId>
		<version>7.0.0</version>
	</parent>
	<artifactId>fgsms-common-test-utils</artifactId>
	<packaging>bundle</packaging>
	<name>fgsms Common WS Test Utilities</name>
	<description>All base test cases for web services and database access</description>
	<dependencies>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
		</dependency>

		<dependency>
			<groupId>org.mil-oss</groupId>
			<artifactId>fgsms-common</artifactId>
			<version>${project.parent.version}</version>
		</dependency>
		<dependency>
			<groupId>org.mil-oss</groupId>
			<artifactId>fgsms-common-interfaces</artifactId>
			<version>${project.parent.version}</version>
		</dependency>
		<dependency>
			<groupId>org.mil-oss</groupId>

=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/InitialContextFactoryForTest.java
=====================================================
/**
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * If it is not possible or desirable to put the notice in a particular
 * file, then You may include the notice in a location (such as a LICENSE
 * file in a relevant directory) where a recipient would be likely to look
 * for such a notice.

 * 
 */
 
/*  ---------------------------------------------------------------------------
 *  U.S. Government, Department of the Army
 *  Army Materiel Command
 *  Research Development Engineering Command
 *  Communications Electronics Research Development and Engineering Center
 *  ---------------------------------------------------------------------------
 */
package org.miloss.fgsms.test;

import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.naming.spi.InitialContextFactory;

/**
 *
 * @author AO
 */

public class InitialContextFactoryForTest implements InitialContextFactory {

    private static Context context;

    static {
        try {
            context = new InitialContext(true) {
                Map<String, Object> bindings = new HashMap<String, Object>();

                @Override
                public void bind(String name, Object obj)
                        throws NamingException {
                    bindings.put(name, obj);
                }


=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/MyHttpServletRequest.java
=====================================================
/**
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * If it is not possible or desirable to put the notice in a particular
 * file, then You may include the notice in a location (such as a LICENSE
 * file in a relevant directory) where a recipient would be likely to look
 * for such a notice.

 * 
 */
 
/*  ---------------------------------------------------------------------------
 *  U.S. Government, Department of the Army
 *  Army Materiel Command
 *  Research Development Engineering Command
 *  Communications Electronics Research Development and Engineering Center
 *  ---------------------------------------------------------------------------
 */
package org.miloss.fgsms.test;

import java.io.*;
import java.security.Principal;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;


/**
 *
 * @author AO
 */
public class MyHttpServletRequest implements HttpServletRequest {

    public MyHttpServletRequest(String username) {
        uname = username;
    }
    String url = "http://localhost:8180/fgsmsServices/DCS";

    public MyHttpServletRequest(String username, String requesturl) {
        uname = username;
        url = requesturl;
    }

    public String getAuthType() {
        return "Basic";
    }

    public Cookie[] getCookies() {

=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/MyMessageContext.java
=====================================================
/**
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * If it is not possible or desirable to put the notice in a particular
 * file, then You may include the notice in a location (such as a LICENSE
 * file in a relevant directory) where a recipient would be likely to look
 * for such a notice.

 * 
 */
 
/*  ---------------------------------------------------------------------------
 *  U.S. Government, Department of the Army
 *  Army Materiel Command
 *  Research Development Engineering Command
 *  Communications Electronics Research Development and Engineering Center
 *  ---------------------------------------------------------------------------
 */
package org.miloss.fgsms.test;
import java.util.*;
import javax.xml.ws.handler.MessageContext;

/**
 *
 * @author AO
 */
    public class MyMessageContext implements MessageContext {

        public MyMessageContext() {
            map = new HashMap();
        }

        public void setScope(String name, Scope scope) {
        }

        public Scope getScope(String name) {
            return null;
        }

        public int size() {
            return map.size();
        }

        public boolean isEmpty() {
            return map.isEmpty();
        }

        public boolean containsKey(Object key) {

=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/MyWebServiceContext.java
=====================================================
/**
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * If it is not possible or desirable to put the notice in a particular
 * file, then You may include the notice in a location (such as a LICENSE
 * file in a relevant directory) where a recipient would be likely to look
 * for such a notice.

 * 
 */
 
/*  ---------------------------------------------------------------------------
 *  U.S. Government, Department of the Army
 *  Army Materiel Command
 *  Research Development Engineering Command
 *  Communications Electronics Research Development and Engineering Center
 *  ---------------------------------------------------------------------------
 */
package org.miloss.fgsms.test;

import java.io.IOException;
import java.io.OutputStream;
import java.security.Principal;
import java.util.*;
import javax.xml.bind.JAXBContext;
import javax.xml.namespace.QName;
import javax.xml.soap.*;
import javax.xml.ws.*;
import javax.xml.ws.handler.MessageContext;
import org.w3c.dom.*;

/**
 *
 * @author AO
 */
public class MyWebServiceContext implements WebServiceContext, javax.xml.ws.handler.soap.SOAPMessageContext {

    public MyWebServiceContext() {
    }

    public MyWebServiceContext(MyMessageContext mc, String username) {
        here = mc;
        uname = username;
    }
    public MyMessageContext here;
    public String uname;

    public MyWebServiceContext(String username) {

=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/SimplePrincipal.java
=====================================================
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.miloss.fgsms.test;

import java.security.Principal;

/**
 *
 * @author alex
 */
class SimplePrincipal implements Principal {

     String name;
     public SimplePrincipal(String uname) {
          name=uname;
     }

     @Override
     public String getName() {
          return name;
     }
     
}

=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-common-test-utils/src/main/java/org/miloss/fgsms/test/WebServiceBaseTests.java
=====================================================
/**
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * If it is not possible or desirable to put the notice in a particular
 * file, then You may include the notice in a location (such as a LICENSE
 * file in a relevant directory) where a recipient would be likely to look
 * for such a notice.
 *
 * 
 */
/*  ---------------------------------------------------------------------------
 *  U.S. Government, Department of the Army
 *  Army Materiel Command
 *  Research Development Engineering Command
 *  Communications Electronics Research Development and Engineering Center
 *  ---------------------------------------------------------------------------
 */
package org.miloss.fgsms.test;

import java.io.File;
import java.io.FileInputStream;
import java.io.StringWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Properties;
import java.util.UUID;
import javax.naming.Context;
import javax.servlet.http.HttpServletRequest;
import javax.xml.bind.Marshaller;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.ws.handler.MessageContext;
import org.miloss.fgsms.common.IpAddressUtility;
import org.miloss.fgsms.common.Utility;
import org.miloss.fgsms.services.interfaces.common.PolicyType;
import org.miloss.fgsms.services.interfaces.policyconfiguration.FederationPolicyCollection;
import org.miloss.fgsms.services.interfaces.policyconfiguration.TransactionalWebServicePolicy;
import org.junit.*;
import static org.junit.Assert.*;
import org.miloss.fgsms.common.Constants;
import org.postgresql.ds.PGPoolingDataSource;
import us.gov.ic.ism.v2.ClassificationType;

/**
 *
 * @author AO
 */