org.jboss.security
Interface SecurityDomain

All Superinterfaces:
AuthenticationManager (src) , RealmMapping (src) , SubjectSecurityManager (src)
All Known Implementing Classes:
JaasSecurityDomain (src)

public interface SecurityDomain
extends SubjectSecurityManager (src) , RealmMapping (src)

The SecurityDomain interface combines the SubjectSecurityManager and RealmMapping interfaces and adds a keyStore and trustStore as well as JSSE KeyManagerFactory and TrustManagerFactory accessors for use with SSL/JSSE.

See Also:
KeyStore, KeyManagerFactory, TrustManagerFactory

Method Summary
 javax.net.ssl.KeyManagerFactory getKeyManagerFactory()
          Get the KeyManagerFactory associated with the security domain
 java.security.KeyStore getKeyStore()
          Get the keystore associated with the security domain
 javax.net.ssl.TrustManagerFactory getTrustManagerFactory()
          Get the TrustManagerFactory associated with the security domain
 java.security.KeyStore getTrustStore()
          Get the truststore associated with the security domain.
 
Methods inherited from interface org.jboss.security.AuthenticationManager (src)
getActiveSubject, getSecurityDomain, isValid, isValid
 
Methods inherited from interface org.jboss.security.RealmMapping (src)
doesUserHaveRole, getPrincipal, getUserRoles
 

Method Detail

getKeyStore

public java.security.KeyStore getKeyStore()
                                   throws java.lang.SecurityException
Get the keystore associated with the security domain

Throws:
java.lang.SecurityException

getKeyManagerFactory

public javax.net.ssl.KeyManagerFactory getKeyManagerFactory()
                                                     throws java.lang.SecurityException
Get the KeyManagerFactory associated with the security domain

Throws:
java.lang.SecurityException

getTrustStore

public java.security.KeyStore getTrustStore()
                                     throws java.lang.SecurityException
Get the truststore associated with the security domain. This may be the same as the keystore.

Throws:
java.lang.SecurityException

getTrustManagerFactory

public javax.net.ssl.TrustManagerFactory getTrustManagerFactory()
                                                         throws java.lang.SecurityException
Get the TrustManagerFactory associated with the security domain

Throws:
java.lang.SecurityException