KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > internal > provisional > verifier > CertificateChain


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.osgi.internal.provisional.verifier;
12
13 import java.security.cert.Certificate JavaDoc;
14 import java.util.Date JavaDoc;
15
16 /**
17  * This class represents a chain of certificates.
18  * <p>
19  * <strong>EXPERIMENTAL</strong>. This class or interface has been added as
20  * part of a work in progress. There is no guarantee that this API will
21  * work or that it will remain the same. Please do not use this API without
22  * consulting with the equinox team.
23  * </p>
24  */

25 public interface CertificateChain {
26     /**
27      * Returns the list of X500 distinguished names that make up the certificate chain. Each
28      * distinguished name is separated by a ';'. The first distinguished name is the signer
29      * and the last is the root Certificate Authority.
30      * @return the list of X500 distinguished names that make up the certificate chain
31      */

32     public String JavaDoc getChain();
33
34     /**
35      * Retruns all certificates in this certificate chain
36      * @return all certificates in this certificate chain
37      */

38     public Certificate JavaDoc[] getCertificates();
39
40     /**
41      * Returns the first certificate of the certificate chain
42      * @return the first certificate of the certificate chain
43      */

44     public Certificate JavaDoc getSigner();
45
46     /**
47      * Returns the root certificate of the certificate chain
48      * @return the foot certificate of the certificate chain
49      */

50     public Certificate JavaDoc getRoot();
51
52     /**
53      * Returns true if this certificate chain is trusted
54      * @return true if this certificate chain is trusted
55      */

56     boolean isTrusted();
57
58     /**
59      * Return the signing time for this signer.
60      *
61      * @return null if there is a signing time for this signer null otherwise
62      */

63     public Date JavaDoc getSigningTime();
64 }
65
Popular Tags