From c774a9be12fa52c55fb18a0f0be7bd3394590c0e Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 22 May 2007 03:55:10 +0000 Subject: [PATCH] * minor - license header and javadoc. --- base/src/org/compiere/util/SecurityToken.java | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/base/src/org/compiere/util/SecurityToken.java b/base/src/org/compiere/util/SecurityToken.java index 6f6b474ae8..c0771c81af 100644 --- a/base/src/org/compiere/util/SecurityToken.java +++ b/base/src/org/compiere/util/SecurityToken.java @@ -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()