KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > jcetaglib > tools > signerInfo


1 /*
2   Name: signerInfo.java
3   Licensing: LGPL
4
5   API: Sun (http://java.sun.com) JCE 1.2.2 API (cleanroom implementation by Bouncy Castle)
6   Provider: Bouncy Castle (http://www.bouncycastle.org)
7
8   Disclaimer:
9
10   COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND,
11   EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE
12   IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE
13   RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE
14   PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR)
15   ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY
16   CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED
17   HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
18 */

19
20 package net.sourceforge.jcetaglib.tools;
21
22 import java.security.cert.X509Certificate JavaDoc;
23
24 /**
25  * Object containing information from a signed object
26  *
27  * @author Gert Van Ham
28  * @author hamgert@users.sourceforge.net
29  * @author http://jcetaglib.sourceforge.net
30  * @version 0.6 (beta) 05-nov-2002
31  */

32
33 public class signerInfo {
34     private String JavaDoc status;
35     private X509Certificate JavaDoc cert;
36
37     /**
38      * Set status (VALID or INVALID).
39      *
40      * @param status String signer's status text
41      **/

42     public void setStatus(String JavaDoc status) {
43         this.status = status;
44     }
45
46     /**
47      * Get status (VALID or INVALID).
48      *
49      * @return status String signer's status text
50      **/

51     public String JavaDoc getStatus() {
52         return status;
53     }
54
55     /**
56      * Set certificate
57      *
58      * @param cert X509Certificate signer's certificate
59      **/

60     public void setCert(X509Certificate JavaDoc cert) {
61         this.cert = cert;
62     }
63
64     /**
65      * Get certificate
66      *
67      * @return X509Certificate signer's certificate
68      **/

69     public X509Certificate JavaDoc getCert() {
70         return cert;
71     }
72 }
73
Popular Tags