KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > protocol > xkms > common > XKMSConstants


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13
14 package org.ejbca.core.protocol.xkms.common;
15
16 import javax.xml.namespace.QName JavaDoc;
17
18 /**
19  * Class containing constants from the XKMS specification
20  *
21  *
22  * @author Philip Vendil 2006 sep 27
23  *
24  * @version $Id: XKMSConstants.java,v 1.2 2007/01/07 00:31:53 herrvendil Exp $
25  */

26
27 public class XKMSConstants {
28     
29     private static final String JavaDoc DEFAULT_ANYURI = "http://www.w3.org/2002/03/xkms#";
30     
31     
32     
33     public static final String JavaDoc RESULTMAJOR_SUCCESS = DEFAULT_ANYURI + "Success";
34     public static final String JavaDoc RESULTMAJOR_VERSIONMISMATCH = DEFAULT_ANYURI + "VersionMismatch";
35     public static final String JavaDoc RESULTMAJOR_SENDER = DEFAULT_ANYURI + "Sender";
36     public static final String JavaDoc RESULTMAJOR_RECIEVER = DEFAULT_ANYURI + "Receiver";
37     public static final String JavaDoc RESULTMAJOR_REPRESENT = DEFAULT_ANYURI + "Represent";
38     public static final String JavaDoc RESULTMAJOR_PENDING = DEFAULT_ANYURI + "Pending";
39     
40     public static final String JavaDoc RESULTMINOR_NOMATCH = DEFAULT_ANYURI + "NoMatch";
41     public static final String JavaDoc RESULTMINOR_TOOMANYRESPONSES = DEFAULT_ANYURI + "TooManyResponses";
42     public static final String JavaDoc RESULTMINOR_INCOMPLETE = DEFAULT_ANYURI + "Incomplete";
43     public static final String JavaDoc RESULTMINOR_FAILURE = DEFAULT_ANYURI + "Failure";
44     public static final String JavaDoc RESULTMINOR_REFUSED = DEFAULT_ANYURI + "Refused";
45     public static final String JavaDoc RESULTMINOR_NOAUTHENTICATION = DEFAULT_ANYURI + "NoAuthentication";
46     public static final String JavaDoc RESULTMINOR_MESSAGENOTSUPPORTED = DEFAULT_ANYURI + "MessageNotSupported";
47     public static final String JavaDoc RESULTMINOR_UNKNOWNREPONSEID = DEFAULT_ANYURI + "UnknownResponseId";
48     public static final String JavaDoc RESULTMINOR_REPRESENTREQUIRED = DEFAULT_ANYURI + "RepresentRequired";
49     public static final String JavaDoc RESULTMINOR_NOTSYNCHRONOUS = DEFAULT_ANYURI + "NotSynchronous";
50     public static final String JavaDoc RESULTMINOR_OPTIONALELEMENTNOTSUPPORTED = DEFAULT_ANYURI + "OptionalElementNotSupported";
51     public static final String JavaDoc RESULTMINOR_POPREQUIRED = DEFAULT_ANYURI + "ProofOfPossessionRequired";
52     public static final String JavaDoc RESULTMINOR_TIMEINSTANTNOTSUPPORTED = DEFAULT_ANYURI + "TimeInstantNotSupported";
53     public static final String JavaDoc RESULTMINOR_TIMEINSTANTOUTOFRANGE = DEFAULT_ANYURI + "TimeInstantOutOfRange";
54     
55     public static final String JavaDoc RESPONSMEC_PENDING = DEFAULT_ANYURI + "Pending";
56     public static final String JavaDoc RESPONSMEC_REPRESENT = DEFAULT_ANYURI + "Represent";
57     public static final String JavaDoc RESPONSMEC_REQUESTSIGNATUREVALUE = DEFAULT_ANYURI + "RequestSignatureValue";
58     
59     public static final String JavaDoc RESPONDWITH_KEYNAME = DEFAULT_ANYURI + "KeyName";
60     public static final String JavaDoc RESPONDWITH_KEYVALUE = DEFAULT_ANYURI + "KeyValue";
61     public static final String JavaDoc RESPONDWITH_X509CERT = DEFAULT_ANYURI + "X509Cert";
62     public static final String JavaDoc RESPONDWITH_X509CHAIN = DEFAULT_ANYURI + "X509Chain";
63     public static final String JavaDoc RESPONDWITH_X509CRL = DEFAULT_ANYURI + "X509CRL";
64     public static final String JavaDoc RESPONDWITH_RETRIEVALMETHOD = DEFAULT_ANYURI + "RetrievalMethod";
65     public static final String JavaDoc RESPONDWITH_PGP = DEFAULT_ANYURI + "PGP";
66     public static final String JavaDoc RESPONDWITH_PGPWEB = DEFAULT_ANYURI + "PGPWeb";
67     public static final String JavaDoc RESPONDWITH_SPKI = DEFAULT_ANYURI + "SPKI";
68     public static final String JavaDoc RESPONDWITH_PRIVATEKEY = DEFAULT_ANYURI + "PrivateKey";
69     
70     public static final String JavaDoc KEYUSAGE_ENCRYPTION = DEFAULT_ANYURI + "Encryption";
71     public static final String JavaDoc KEYUSAGE_SIGNATURE = DEFAULT_ANYURI + "Signature";
72     public static final String JavaDoc KEYUSAGE_EXCHANGE = DEFAULT_ANYURI + "Exchange";
73     
74     public static final String JavaDoc USEKEYWITH_XKMS = DEFAULT_ANYURI;
75     public static final String JavaDoc USEKEYWITH_XKMSPROFILE = DEFAULT_ANYURI + "/profile";
76     public static final String JavaDoc USEKEYWITH_SMIME = "urn:ietf:rfc:2633";
77     public static final String JavaDoc USEKEYWITH_PGP = "urn:ietf:rfc:2440";
78     public static final String JavaDoc USEKEYWITH_TLS = "urn:ietf:rfc:2246";
79     public static final String JavaDoc USEKEYWITH_TLSHTTP = "urn:ietf:rfc:2818";
80     public static final String JavaDoc USEKEYWITH_TLSSMTP = "urn:ietf:rfc:2487";
81     public static final String JavaDoc USEKEYWITH_IPSEC = "urn:ietf:rfc:2401";
82     public static final String JavaDoc USEKEYWITH_PKIX = "urn:ietf:rfc:2459";
83     
84     public static final String JavaDoc STATUSVALUE_VALID = DEFAULT_ANYURI + "Valid";
85     public static final String JavaDoc STATUSVALUE_INVALID = DEFAULT_ANYURI + "Invalid";
86     public static final String JavaDoc STATUSVALUE_INDETERMINATE = DEFAULT_ANYURI + "Indeterminate";
87     
88     public static final String JavaDoc STATUSREASON_ISSUERTRUST = DEFAULT_ANYURI + "IssuerTrust";
89     public static final String JavaDoc STATUSREASON_REVOCATIONSTATUS = DEFAULT_ANYURI + "RevocationStatus";
90     public static final String JavaDoc STATUSREASON_VALIDITYINTERVAL = DEFAULT_ANYURI + "ValidityInterval";
91     public static final String JavaDoc STATUSREASON_SIGNATURE = DEFAULT_ANYURI + "Signature";
92     
93     public static final String JavaDoc PENDNOTIFICATION_MECHANISM_SMTP = "urn:ietf:rfc:822";
94     public static final String JavaDoc PENDNOTIFICATION_MECHANISM_HTTP = "urn:ietf:rfc:2616";
95     
96     public static final String JavaDoc PENDNOTIFICATION_IDENTIFIER_SMTP = "mailto:";
97     public static final String JavaDoc PENDNOTIFICATION_IDENTIFIER_HTTP = "http://";
98     
99     public final static QName JavaDoc _X509DataTypeX509Certificate_QNAME = new QName JavaDoc("http://www.w3.org/2000/09/xmldsig#", "X509Certificate");
100 }
101
Popular Tags