2008年2月29日星期五

SSO - Single Sign-On

From: http://www.dicodunet.com

Définition
Authentification unique

Description
Le but du système SSO est d'avoir un seul moyen de s'authentifier auprès d'un système informatique quelles que soient les applications à utiliser. Ce moyen peut être un compte d'utilisateur et un mot de passe ou bien une carte à puce.

Le système SSO permet de simplifier la vie des utilisateurs en ne multipliant pas les accès aux différentes applications, car une fois authentifié par le système, on peut lancer toutes les applications voulues sans remettre de mot de passe.

JSP (中文版本)

From: http://zh.wikipedia.org

JSP(全称JavaServer Pages)是由Sun Microsystems公司倡导和许多公司参与共同建立的一种使软件开发者可以响应客户端请求,而动态生成HTML、XML或其他格式文档的Web网页的技术标准。JSP技术是以Java语言作为脚本语言的,JSP网页为整个服务器端的Java库单元提供了一个接口来服务于HTTP的应用程序。

JSP使Java代码和特定的预定义动作可以嵌入到静态页面中。JSP句法增加了被称为JSP动作的XML标签,它们用来调用内建功能。另外,可以创建JSP标签库,然后象使用标准HTML或XML标签一样使用它们。标签库提供了一种和平台无关的扩展服务器性能的方法。

JSP被JSP编译器编译成Java Servlets。一个JSP编译器可以把JSP编译成JAVA代码写的servlet然后再由JAVA编译器来编译成机器码,也可以直接编译成二进制码。

JSP 和 Servlets
从架构上说,JSP可以被看作是从Servlets高级提炼而作为JAVA Servlet 2.1 API的扩展而应用。Servlets和JSPs最早都是由Sun Microsystems(升阳公司)开发的。从JSP1.2版本以来,JSP处于Java Community Process(有人译为:JAVA社区组织)开发模式下。JSR-53 规定了JSP 1.2 和 Servlet 2.4的规范,JSR-152 规定了 JSP 2.0的规范。2006年5月,JSP 2.1的规范作为Java EE 5 的一部份,在JSR-245中发布。

JSP 句法
一个JSP页面可以被分为以下几部份:

静态数据,如 HTML
JSP 指令,如 include 指令
JSP 脚本元素和变量
JSP 动作
用户自定义标签

静态数据
静态数据在输入文件中的内容和输出给HTTP 响应的内容完全一致。此时,该JSP输入文件会是一个没有内嵌JAVA或动作的HTML页面。而且,客户端每次请求都会得到相同的响应内容。

JSP 指令
JSP指令控制JSP编译器如何去生成 servlet,以下是可用的指令:

包含指令include – 包含指令通知JSP编译器把另外一个文件完全包含入当前文件中。效果就好象被包含文件的内容直接被粘贴到当前文件中一样。这个功能和C preprocessor所提供的很类似。被包含文件的扩展名一般都是 "jspf" (即 JSP Fragment,JSP碎片):
<%@ include file="somefile.jsp" %>
页面指令page – 页面指令有以下几个选项:
import 使一个JAVA导入声明被插入到最终页面文件。
contentType 规定了生成内容的类型。当生成非HTML内容或者当前字符集character set并非默认字符集时使用。
errorPage 处理HTTP请求时,如果出现异常则显示该错误提示信息页面。
isErrorPage 如果设置为TRUE,则表示当前文件是一个错误提示页面。
isThreadSafe 表示最终生成的servlet 是否安全线程( thread safe)。

<%@ page import="java.util.*" %> //example import导入样例
<%@ page contentType="text/html" %> //example contentType页面类型样例
<%@ page isErrorPage=false %> //example for non error page无错页面样例
<%@ page isThreadSafe=true %> //example for a thread safe JSP安全线程JSP样例会
注意: 在同一个JSP文件中只有"import"导入页面指令可以被多次使用。

标签库指令taglib – 标签库指令描述了要使用的JSP标签库。该指令需要指定一个前缀prefix(和C++的命名空间很类似)和标签库的描述URI:
<%@ taglib prefix="myprefix" uri="taglib/mytag.tld" %>

JSP脚本元素和变量

标准脚本变量
以下是永远可用的脚本变量:

out – JSPWriter用来写入响应流的数据
page – servlet自身
pageContext – 一个 PageContext 实例包括和整个页面相联系的数据,一个给定的HTML页面可以在多个JSP之间传递。
request – HTTP request 对象
response – HTTP response 对象
session – HTTP session 对象,在多个请求之间追踪一个客户的信息。

脚本元素
有三个基本的脚本元素,作用是使JAVA代码可以直接插入 servlet.

一种是声明标签,在JAVA SERVLET的类体中放入一个变量的定义。静态的数据成员也可以如此定义。
<%! int serverInstanceVariable = 1; %>
一种是脚本标签,在JAVA SERVLET的类的_jspService()方法中放入所包含的语句。
<% int localStackBasedVariable = 1; out.println(localStackBasedVariable); %>
一种是表达式标签,在JAVA SERVLET的类中放入待赋值的表达式,表达式注意不能以分号结尾。
<%= "expanded inline data " + 1 %>

JSP 动作
JSP动作是一系列可以调用内建于网络服务器中的功能的XML标签。JSP提供了以下动作:

jsp:include 和子过程类似,JAVA SERVLET暂时接管对其它指定的JSP页的请求和响应。当处理完该JSP页后就马上把控制权交还当前JSP页。这样JSP代码就可以在多个JSP页中共享而不用复制。
jsp:param 可以在jsp:include, jsp:forward 或 jsp:params块之间使用。指定一个将加入请求的当前参数组中的参数。
jsp:forward 用于处理对另一个JSP或SERVLET的请求和响应。控制权永远不会交还给当前JSP页。
jsp:plugin Netscape Navigator 的老版本和 Internet Explorer 使用不同的标签以嵌入一个applet。这个动作产生为嵌入一个APPLET所需要的指定浏览器标签。
jsp:fallback 如果浏览器不支持APPLETS则会显示的内容。
jsp:getProperty 从指定的JavaBean。
jsp:setProperty 在指定的JavaBean中设置一个属性值。
jsp:useBean 创建或者复用一个JavaBean 变量到JSP页。

(height="${param.height}", code="${chart}"等)和动态参数的新功能。 目前jsp:plugin标签不允许动态调用 applets。例如,你如果有一个图表applet需要数据点以参数形式被传入,除非数据点的数量是一个常量,否则你就不能使用ResultSet 循环来创建jsp:param标签,你不得不手写每个jsp:param标签的代码。而每个上述jsp:param标签可以有一个动态命名和动态值。

request — 该属性在请求的生命周期内有效,一旦请求被所有的JSP页处理完后,那么该属性就不可引用。
page — 该属性只是当前页中有效。
session — 该属性在用户会话的生命周期内有效。
application — 该属性在各种情况下都有效,并且永远不会被变为不可引用,和侨居变量global variable相同。
上述例子将会用一个创建一个类的实例,并且把该实例存储在属性中,该属性将在该请求的生命周期内有效。它可以在所有被包含或者从主页面(最先接收请求的页面)转向到的JSP页之间共享。

JSP标签库
除了JSP预定义动作之外,开发者还可以使用JSP标签扩展API添加他们自定义的动作。开发者写一种实现一个标签的界面和一个标签库的XML描述文件的JAVA类,这就能指定标签和实现标签的JAVA类

JSP编译器将会载入mytaglib.tld这个XML文件,然后可以看到标签myaction由JAVA类MyActionTag实现。当该标签首次在文件中使用时,将会创建一个MyActionTag的实例。然后(而且当每次该标签被使用时),当出现开始标签时,将会调用doStartTag()方法,根据开始标签的结果,来决定如何处理标签的主体。主体是指开始标签和结束标签之间的文本。这个doStartTag()方法将会返回如下之一:

SKIP_BODY - 标签之间不做处理。
EVAL_BODY_INCLUDE - 对标签之内主体进行赋值。
EVAL_BODY_TAG - 对标签之内主体进行赋值并把结果输出到流(保存在标签的主体内容属性中)。
注意: 如果标签扩展了 BodyTagSupport 类,当主体被执行时会在调用doEndTag()之前调用doAfterBody()方法。该方法用于实现循环结构。
当结束标签出现时,它会调用doEndTag()方法,该方法会返回如下两做之一:

EVAL_PAGE - 表示JSP文件的剩余部份将会被执行。this indicates that the rest of the JSP file should be processed.
SKIP_PAGE - 表示将不会再有更多执行操作。当前JSP页交出控制权。就象在转发动作中的作用一样。

2007年12月27日星期四

Authentification

Source: fr.wikipedia.org

L'authentification est la procédure qui consiste, pour un système informatique, à vérifier l'identité d'une entité (personne, ordinateur...), afin d'autoriser l'accès de cette entité à des ressources (systèmes, réseaux, applications...). L'authentification permet donc de valider l'authenticité de l'entité en question.

L'identification permet donc de connaître l'identité d'une entité alors que l'authentification permet de vérifier cette identité.

Enjeu

Le contrôle permanent de l'intégrité et de l'accès (usage, identité du destinataire, émetteur, propriétaire) à un contenu ou à un service constitue le fondement de la traçabilité des transactions.

Ce contrôle permet :
 la protection des intérêts supérieurs de l'État et du patrimoine informatique des entreprises, donc de leurs intérêts commerciaux. Pour les entreprises, il s'agit de réduire le coût qui résulte d'attaques, de la perte de temps, de la perte d'informations, de l'espionnage, ou des fuites involontaires d'informations...
 le développement du commerce et des échanges électroniques. L'authentification contribue à la facturation des services et contribue à la confiance dans l'économie numérique, condition indispensable du développement économique.
 la protection de la vie privée. Les données personnelles véhiculées dans les systèmes d'information sont des données sensibles à protéger.

Les techniques d'authentification font partie des technologies clés.

Méthodes de vérification

La phase de vérification fait intervenir un protocole d'authentification. On en distingue deux sortes « familles » :

L'authentification simple : l'authentification ne repose que sur un seul élément ou « facteur » (exemple : l'utilisateur indique son mot de passe).

L'authentification forte : l'authentification repose sur deux facteurs ou plus.

Facteur d'authentification

Le facteur d'authentification est un facteur physique, cognitif ou biologique produisant une empreinte qu'un utilisateur peut prendre pour être authentifié par un système informatique. L'empreinte doit être personnelle à l'utilisateur et doit pouvoir être numérisée.

Types de facteurs
Quatre types de facteurs répondent à ces prérequis:

Facteur mémoriel (ce qu'il sait)
Empreinte: une information qu'il a mémorisé.
Exemples: le nom de sa mère ou un mot de passe.

Facteur matériel (ce qu'il possède)
Empreinte: une information contenue dans un objet qu'il utilise.
Exemples: une clé USB, un cookie de navigateur, un identifiant sur bande magnétique.

Facteur corporel (ce qu'il montre)
Empreinte: une trace corporelle qu'il peut laisser quelque part.
Exemples: une empreinte digitale, les caractéristiques de sa pupille, sa voix.

Facteur réactionnel (ce qu'il fait)
Empreinte: un geste qu'il peut reproduire.
Exemples: sa signature.

Le type de facteur le plus couramment utilisé sur Internet est le facteur mémoriel. La montée du phishing pousse les applications en ligne à surmonter l'authentification simple classique avec un deuxième facteur d'authentification (authentification forte).

Sécurisation des Applications WEB

1.Système d’authentification simple
Ce système est basé sur un identifiant automatiquement généré et un mot de passe statique (à renouveler selon des règles définis dans le SI).

2.Système d’authentification forte
Digipass (Mot de passe dynamique) + certificat

DIGIPASS PRO 300

Source: www.vasco.com

Strong authentication and e-signatures fitting in the palm of your hand.

The handheld Digipass 300 provides financial institutions and companies with a secure means of customer or employee identification and authentication for remote access to their computer systems and networks. The Digipass 300 is ideally suited for large public banking applications such as telebanking, home banking, PC banking, phone banking and Internet banking where authentication and e-signatures are key requirements.

The user interface has been conceived to work in an intuitive way, requiring a minimum number of keystrokes, so that the user can start using the Digipass 300 almost without referring to a user guide. Thanks to the optical interface, the user can even read challenges directly from the computer screen.

The Digipass 300 benefits from all existing programming and authentication software that already supports the other Digipass family members.

2007年11月26日星期一

ESES

Démarrage d’ESES en France lundi 26/11

Suite au besoin exprimé par Euronext d’offrir à ses utilisateurs un carnet d’ordre unique, la création d’une plate-forme commune de règlement/livraison (ESES - Euroclear Settlement of Euronext zone Securities) pour les marchés Euronext devenait incontournable.

ESES est un système de livraison contre paiement irrévocable en temps réel ce qui offre une plus grande rapidité et une meilleure sécurité pour le dénouement des instructions des clients. ESES est une étape intermédiaire vers la création à terme de SP (Single Platform), plate-forme de règlement/livraison commune à l’ensemble des dépositaires centraux domestiques et internationaux couverts par ESES, plus CREST pour l’Irlande, la Grande-Bretagne et Euroclear Bank.

L’harmonisation des pratiques à travers les marchés Euronext conduit à l’instauration d’une record date explicite en France.

Cette mise en place n’aura pas d’impact sur le traitement des opérations de distributions de titres mais modifie l’ordre des dates sur les paiements de dividendes.

Avant ESES : la date de détachement (ex date) et la date de paiement (payment date) correspondent, la date d’arrêté (record date) implicite se situe donc à ex date -1.

Avec ESES : afin de limiter le nombre d’opérations sur titres sur flux, le marché français introduit la notion de record date (correspondant à ex date +2 jours ouvrés). Les règles de droit à l’OST ne sont pas modifiées, à savoir toute transaction dont la date de négociation se situe strictement avant l’ex date a le droit au coupon ; en revanche, les positions arrêtées se rapportent à celles dénouées au soir de la record date et la date de paiement se trouve donc décalée à ex date + 3 jours ouvrés. Euroclear France continuera d’appliquer en automatique les OST sur flux espèces pour les transactions ayant un cycle de règlement livraison atypique, c’est-à-dire différent de J+3.

2007年11月5日星期一

Mark to market

Source: http://en.wikipedia.org

In finance and accounting, mark to market is the act of assigning a value to a position held in a financial instrument based on the current market price for that instrument or similar instruments. For example, the final value of a futures contract that expires in 9 months will not be known until it expires. If it is marked to market, for accounting purposes it is assigned the value that it would fetch in the open market currently.

History and development

The practice of mark to market as an accounting device first developed among traders on futures exchanges in the 19th century. It wasn't until the 1980s that the practice spread to big banks and corporations far from the traditional exchange trading pits, and beginning in the 1990s, mark-to-market accounting began to give rise to scandals.

To understand the original practice, consider that a futures trader, when taking a position, deposits money with the exchange, called a "margin". This is intended to protect the exchange against loss. At the end of every trading day, the contract is marked to its present market value. If the trader is on the winning side of a deal, his contract has increased in value that day, and the exchange pays this profit into his account. On the other hand, if he is on the losing side, the exchange will debit his account. If he cannot pay, then the margin is used as the collateral from which the loss is paid. As an example, the Chicago Mercantile Exchange, taking the process one step further, marks positions to market twice a day, at 10:00 am and 2:00 pm.

Over-the-counter (OTC) derivatives on the other hand are not traded on exchanges, so their market prices are not as readily available. During their early development, OTC derivatives such as interest rate swaps were not marked to market frequently. Deals were monitored on a quarterly or annual basis, when gains or losses would be acknowledged or payments exchanged.

As the practice of marking to market caught on in corporations and banks, some of them seem to have discovered that this was a tempting way to dress up the books, especially when the market price could not be objectively determined (because there was no real day-to-day market available), so assets were being 'marked to model' using estimated valuations derived from financial modeling, and sometimes marked to fantasies

Internal Revenue Code Section 475 contains the mark to market accounting method rule. Section 475 provides that dealers that elect mark to market treatment shall recognize gain or loss as if the property were sold for its fair market value on the last business day of the year, and any gain or loss shall be taken into account in that year. The section also provides that dealers in commodities can elect mark to market treatment for any commodity (or their derivatives) which is actively traded (i.e., for which there is an established financial market that provides a reasonable basis to determine fair market value by disseminating price quotes from broker/dealers or actual prices from recent transactions)

Simple example

As an example, if an investor owns 100 shares of a particular stock purchased originally for $40 per share, and that stock is currently trading at $60 per share, then the "mark to market" value of the investor's shares is equal to (100 shares × $60), or $6000, whereas the Book value might (depending on the accounting principles used) only equal $4000.

Similarly, if the stock falls to $30 dollars, the mark-to-market value is $3000, and the investor has lost $1000 of the original investment. If the stock was purchased on margin, this might trigger a margin call and the investor would have to come up with an amount sufficient to meet the margin requirements for his account.