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  package org.apache.james.security;
21  
22  /***
23   * Contains some SMIME related mail attribute names of general use.
24   *
25   * @version CVS $Revision: 494012 $ $Date: 2007-01-08 10:23:58 +0000 (Mon, 08 Jan 2007) $
26   * @since 2.2.1
27   */
28  public interface SMIMEAttributeNames {
29      
30      /***
31       * The attribute contains the server-side signing mailet name as a String.
32       */
33      public static final String SMIME_SIGNING_MAILET = "org.apache.james.smime.signing.mailetname";
34      
35      /***
36       * The attribute contains the string "valid" or the reason of non-validity of the signature.
37       * The status could be non valid either because the signature does not verify
38       * or because the certificate could be not valid when the signature was done.
39       */    
40      public static final String SMIME_SIGNATURE_VALIDITY = "org.apache.james.smime.signature.validity";
41      
42      /***
43       * The attribute contains the signer's mail address as a String.
44       */
45      public static final String SMIME_SIGNER_ADDRESS = "org.apache.james.smime.signer.address";
46      
47      /***
48       * The attribute contains the signature timestamp as a Date object.
49       */
50      public static final String SMIME_SIGNING_TIME = "org.apache.james.smime.signing.time";
51      
52  }