Clover Coverage Report
Coverage timestamp: Sun Mar 23 2008 08:24:39 GMT
0   189   1   -
0   24   -   0
0     -  
1    
 
 
  Comm       Line # 62 0 1 - -1.0
 
No Tests
 
1   
2    /*
3    * Copyright (c) 2006, University of Kent
4    * All rights reserved.
5    *
6    * Redistribution and use in source and binary forms, with or without
7    * modification, are permitted provided that the following conditions are met:
8    *
9    * Redistributions of source code must retain the above copyright notice, this
10    * list of conditions and the following disclaimer.
11    *
12    * Redistributions in binary form must reproduce the above copyright notice,
13    * this list of conditions and the following disclaimer in the documentation
14    * and/or other materials provided with the distribution.
15    *
16    * 1. Neither the name of the University of Kent nor the names of its
17    * contributors may be used to endorse or promote products derived from this
18    * software without specific prior written permission.
19    *
20    * 2. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21    * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22    * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23    * PURPOSE ARE DISCLAIMED.
24    *
25    * 3. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26    * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27    * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28    * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29    * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30    * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31    * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32    * POSSIBILITY OF SUCH DAMAGE.
33    *
34    * 4. YOU AGREE THAT THE EXCLUSIONS IN PARAGRAPHS 2 AND 3 ABOVE ARE REASONABLE
35    * IN THE CIRCUMSTANCES. IN PARTICULAR, YOU ACKNOWLEDGE (1) THAT THIS
36    * SOFTWARE HAS BEEN MADE AVAILABLE TO YOU FREE OF CHARGE, (2) THAT THIS
37    * SOFTWARE IS NOT "PRODUCT" QUALITY, BUT HAS BEEN PRODUCED BY A RESEARCH
38    * GROUP WHO DESIRE TO MAKE THIS SOFTWARE FREELY AVAILABLE TO PEOPLE WHO WISH
39    * TO USE IT, AND (3) THAT BECAUSE THIS SOFTWARE IS NOT OF "PRODUCT" QUALITY
40    * IT IS INEVITABLE THAT THERE WILL BE BUGS AND ERRORS, AND POSSIBLY MORE
41    * SERIOUS FAULTS, IN THIS SOFTWARE.
42    *
43    * 5. This license is governed, except to the extent that local laws
44    * necessarily apply, by the laws of England and Wales.
45    */
46   
47   
48    /*
49    * Comm.java
50    *
51    * Created on April 5, 2005, 4:12 PM
52    */
53   
54    package issrg.dis;
55   
56    /**
57    * This file contains the communication strings.
58    * These strings are used between DIS java object and
59    * its frontends
60    * @author anhnt
61    */
 
62    public class Comm {
63   
64    /**
65    *This string indicates mutual authentication between the DIS and its peer fails
66    */
67   
68    public static final String MUTUAL_AUTHENTICATION_FAILED = "Mutual authentication failed";
69   
70    /**
71    *This string indicates the issuing (storing) process is done. The AC is stored in holder's entry in LDAP
72    */
73   
74    public static final String PUBLISH = "Done";
75   
76    /**
77    *This string indicates that the DIS can not write to the specified LDAP
78    */
79    public static final String ERROR_WRITING_LDAP = "Error when writing to ldap";
80   
81    /**
82    *This string indicates that the AC creation process fails
83    */
84    public static final String ACCREATION_ERROR = "AC Creation Error";
85   
86    /**
87    *This string indicates that the requestor does not have enough privileges to issue the requested AC or the request is not appropriate for the DIS.
88    *Example: requestor wants to issue an AC to a user that is outside the DIS's subject domain.
89    */
90   
91    public static final String ISSUER_DONOT_HAVE_ENOUGH_PRIVILEGES_OR_CAN_NOT_DOWNGRADE_PRIVILEGE_OR_WRONG_REQUEST = "Issuer does not have enough privilege or can not downgrade privilege or wrong request";
92   
93    /**
94    *This string indicates that the requestor does not have enough privileges to issue the AC and the DIS is not configured to downgrade the requested AC
95    */
96   
97    public static final String CANNOT_DOWNGRADE_PRIVILEGES = "Can not create AC - can not downgrade privileges in AC-to-be-sign";
98   
99    /**
100    *This string indicates that the holder of an AC can assert the role specified by the AC
101    */
102   
103    public static final String CAN_ASSERT = "Holder can assert privileges";
104   
105    /**
106    *This string indicates that the holder of an AC can not assert the role specified by the AC
107    */
108   
109    public static final String CAN_NOT_ASSERT = "Holder can not assert privileges";
110   
111    /**
112    *This string indicates that there is a role value or a role type in the requested AC is not defined in DIS's issuing policy
113    */
114   
115    public static final String ROLETYPE_OR_ROLE_VALUE_IS_NOT_SUPPORTED_IN_POLICY = "Role type or role value is not supported in policy";
116   
117    /**
118    *This string indicates that the DIS can not decode an AC
119    */
120   
121    public static final String CAN_NOT_DECODE_AC_TO_BE_SIGN = "Can not decode the requested AC";
122   
123    /**
124    *This string indicates that the DIS does not enough privileges to issue the requested AC
125    */
126   
127    public static final String DIS_DO_NOT_HAVE_ENOUGH_PRIVILEGE = "Delegation Issuing Service does not have enough privilege to issue this certificate";
128   
129    /**
130    *This string indicates that the caller (signing proxy) is not trusted by the DIS
131    */
132   
133    public static final String PROXY_SIGNING_IS_NOT_TRUSTED = "Proxy signing is not trusted by DIS";
134   
135    /**
136    *This string indicates that the AC has been tampered with. The signature verification fails.
137    */
138   
139    public static final String CHECK_SIGNATURE_FAILED = "Failed when checking signature";
140   
141    /**
142    *This string indicates that the iobo extension does not exist in the AC
143    */
144   
145    public static final String ISSUED_ON_BEHALF_OF_NOT_PRESENT = "issuedOnBehalfOf does not present";
146   
147    /**
148    *This string indicates that the revocation request is rejected
149    */
150   
151    public static final String REVOCATION_REJECT = "You are not allowed to revoke an Attribute that you do not hold or did not issue";
152   
153    /**
154    *This string indicates that the revocation request is accepted and the AC is revoked
155    */
156    public static final String REVOKE_SUCCESS = "Requested Attribute is revoked";
157   
158    /**
159    *This string is used to indicate that one person did not issue a particular AC
160    */
161   
162    public static final String YOU_DID_NOT_ISSUE_THIS_AC = "You did not issue this attribute";
163   
164   
165    /**
166    *This string is used to signal the DIS's peer that the AC is broken
167    */
168   
169    public static final String BROKEN_AC = "Broken AC";
170   
171    /**
172    *This string is used to signal the DIS's peer that the AC storing an XML policy
173    */
174   
175    public static final String PMI_XML_POLICY = "PMI_XML_POLICY";
176   
177    /**
178    *This string indicates that the requestor is not allowed to view user's attributes
179    */
180   
181    public static final String YOU_ARE_NOT_ALLOWED_TO_VIEW_ATTRIBUTE = "You are not allowed to view user's attribute";
182   
183    /**
184    *This string indicates that the DIS can not revoke its ACs issued by SOAs. Requestor needs to use another tool to do it.
185    */
186   
187    public static final String USE_ACM_TOOL_TO_REVOKE = "Unable to revoke DIS's AC. Please use the ACM tool";
188   
189    }