KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > security > auth > message > callback > CertStoreCallback


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package javax.security.auth.message.callback;
23
24 import java.security.cert.CertStore JavaDoc;
25
26 import javax.security.auth.callback.Callback JavaDoc;
27
28 //$Id: CertStoreCallback.java 45179 2006-05-23 20:18:57Z asaldhana $
29

30 /**
31  * Callback for CertStore.
32  * A CertStore is a generic repository for certificates.
33  * CertStores may be searched to locate public key certificates, as well
34  * as to put together certificate chains. Such a search may be necessary
35  * when the caller needs to verify a signature.
36  *
37  * @author <a HREF="mailto:Anil.Saldhana@jboss.org">Anil Saldhana</a>
38  * @author Charlie Lai, Ron Monzillo (Javadoc for JSR-196)
39  * @since May 11, 2006
40  * @version $Revision: 45179 $
41  */

42 public class CertStoreCallback implements Callback JavaDoc
43 {
44    private CertStore JavaDoc certStore;
45    
46    /**
47     * Create a CertStoreCallback.
48     */

49    public CertStoreCallback()
50    {
51    }
52
53    /**
54     * Get the requested CertStore.
55     *
56     * @return the CertStore, or null. If null, the requester is assumed to
57     * already have access to the relevant certificate and/or chain.
58     */

59    public CertStore JavaDoc getCertStore()
60    {
61       return certStore;
62    }
63
64    /**
65     * Set the CertStore.
66     * @param certStore the certificate store, which may be null If null, the
67     * requester is assumed to already have access to the relevant certificate
68     * and/or chain.
69     */

70    public void setCertStore(CertStore JavaDoc certStore)
71    {
72       this.certStore = certStore;
73    }
74 }
75
Popular Tags