KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > security > SecurityDomain


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.security;
8
9 import java.lang.SecurityException JavaDoc;
10 import java.security.KeyStore JavaDoc;
11 // JSSE key and trust managers
12
import javax.net.ssl.KeyManagerFactory;
13 import javax.net.ssl.TrustManagerFactory;
14
15 /** The SecurityDomain interface combines the SubjectSecurityManager and
16  RealmMapping interfaces and adds a keyStore and trustStore as well as
17  JSSE KeyManagerFactory and TrustManagerFactory accessors for use with SSL/JSSE.
18
19 @see java.security.KeyStore
20 @see javax.net.ssl.KeyManagerFactory
21 @see javax.net.ssl.TrustManagerFactory
22
23  * @author Scott.Stark@jboss.org
24  * @version $Revision: 1.4 $
25  */

26 public interface SecurityDomain extends SubjectSecurityManager, RealmMapping
27 {
28    /** Get the keystore associated with the security domain */
29    public KeyStore JavaDoc getKeyStore() throws SecurityException JavaDoc;
30    /** Get the KeyManagerFactory associated with the security domain */
31    public KeyManagerFactory getKeyManagerFactory() throws SecurityException JavaDoc;
32
33    /** Get the truststore associated with the security domain. This may be
34     the same as the keystore. */

35    public KeyStore JavaDoc getTrustStore() throws SecurityException JavaDoc;
36    /** Get the TrustManagerFactory associated with the security domain */
37    public TrustManagerFactory getTrustManagerFactory() throws SecurityException JavaDoc;
38    
39 }
40
Popular Tags