package com.yubico.client.v2;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Version {
	private static String version;
	
	public static String version() {
		if(version == null) {
			Properties properties = new Properties();
			try {
				InputStream stream = Version.class.getResourceAsStream("/version.properties");
				if(stream == null) {
					return null;
				}
				properties.load(stream);
				version = properties.getProperty("version");
			} catch (IOException e) {
				return null;
			}
		}
		return version;
	}
}

@@ -1,8 +1,1380 @@
+/* Copyright (c) 2012, Yubico AB.  All rights reseved.%0A%0A   Redistribution and use in source and binary forms, with or without%0A   modification, are permitted provided that the following conditions%0A   are met:%0A  %0A   * Redistributions of source code must retain the above copyright%0A     notice, this list of conditions and the following disclaimer.%0A  %0A   * Redistributions in binary form must reproduce the above copyright%0A     notice, this list of conditions and the following%0A     disclaimer in the documentation and/or other materials provided%0A     with the distribution.%0A %0A   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND%0A   CONTRIBUTORS %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES,%0A   INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF%0A   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE%0A   DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS%0A   BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,%0A   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED%0A   TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,%0A   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON%0A   ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR%0A   TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF%0A   THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF%0A   SUCH DAMAGE.%0A*/%0A%0A
 package 

add copyright and license