View Javadoc

1   /****************************************************************
2    * Licensed to the Apache Software Foundation (ASF) under one   *
3    * or more contributor license agreements.  See the NOTICE file *
4    * distributed with this work for additional information        *
5    * regarding copyright ownership.  The ASF licenses this file   *
6    * to you under the Apache License, Version 2.0 (the            *
7    * "License"); you may not use this file except in compliance   *
8    * with the License.  You may obtain a copy of the License at   *
9    *                                                              *
10   *   http://www.apache.org/licenses/LICENSE-2.0                 *
11   *                                                              *
12   * Unless required by applicable law or agreed to in writing,   *
13   * software distributed under the License is distributed on an  *
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
15   * KIND, either express or implied.  See the License for the    *
16   * specific language governing permissions and limitations      *
17   * under the License.                                           *
18   ****************************************************************/
19  
20  
21  
22  package org.apache.james.mailet.crypto;
23  
24  /**
25   * Contains some SMIME related mail attribute names of general use.
26   *
27   * @version CVS $Revision: 721862 $ $Date: 2008-11-30 17:38:25 +0000 (Sun, 30 Nov 2008) $
28   * @since 2.2.1
29   */
30  public interface SMIMEAttributeNames {
31      
32      /**
33       * The attribute contains the server-side signing mailet name as a String.
34       */
35      public static final String SMIME_SIGNING_MAILET = "org.apache.james.smime.signing.mailetname";
36      
37      /**
38       * The attribute contains the string "valid" or the reason of non-validity of the signature.
39       * The status could be non valid either because the signature does not verify
40       * or because the certificate could be not valid when the signature was done.
41       */    
42      public static final String SMIME_SIGNATURE_VALIDITY = "org.apache.james.smime.signature.validity";
43      
44      /**
45       * The attribute contains the signer's mail address as a String.
46       */
47      public static final String SMIME_SIGNER_ADDRESS = "org.apache.james.smime.signer.address";
48      
49      /**
50       * The attribute contains the signature timestamp as a Date object.
51       */
52      public static final String SMIME_SIGNING_TIME = "org.apache.james.smime.signing.time";
53      
54  }