KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > security > CertificatePrincipal


1 /*
2 * JBoss, the OpenSource J2EE webOS
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */

7 package org.jboss.security;
8
9 import java.security.Principal JavaDoc;
10 import java.security.cert.X509Certificate JavaDoc;
11
12 /** An interface for converting an X509 cert to a Principal
13  *
14  * @author Scott.Stark@jboss.org
15  * @version $Revision: 1.2.6.1 $
16  */

17 public interface CertificatePrincipal
18 {
19    /**
20     * Return the Principal associated with the specified chain of X509
21     * client certificates. If there is none, return <code>null</code>.
22     *
23     * @param certs Array of client certificates, with the first one in
24     * the array being the certificate of the client itself.
25     */

26    public Principal JavaDoc toPrinicipal(X509Certificate JavaDoc[] certs);
27 }
28
Popular Tags