* minor - license header and javadoc.

This commit is contained in:
Heng Sin Low 2007-05-22 03:55:10 +00:00
parent c8cad345ca
commit c774a9be12
1 changed files with 27 additions and 1 deletions

View File

@ -1,3 +1,19 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 2007 Adempiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
*
* Copyright (C) 2007 Low Heng Sin hengsin@avantz.com
* _____________________________________________
*****************************************************************************/
package org.compiere.util;
import java.io.Serializable;
@ -7,6 +23,7 @@ import java.security.cert.Certificate;
import org.compiere.Adempiere;
/**
* Security token, send from client to server for security validation.
* @author Low Heng Sin
*/
public class SecurityToken implements Serializable {
@ -21,17 +38,26 @@ public class SecurityToken implements Serializable {
codeBaseHost = host;
}
/**
* Get the certificate that is use to sign the jar library.
* @return Certificate
*/
public final Certificate getCodeCertificate()
{
return codeCertificate;
}
/**
* Get the host that the code is loaded from.
* @return String
*/
public final String getCodeBaseHost()
{
return codeBaseHost;
}
/**
* Construct the application wide security token.
* @return SecurityToken
*/
private static SecurityToken getSecurityToken()
@ -51,7 +77,7 @@ public class SecurityToken implements Serializable {
}
/**
* Get the client security token for server validation
* Get the application wide security token.
* @return SecurityToken
*/
public static SecurityToken getInstance()