public interface ResourceAccessManager
extends com.centrasite.jaxr.CentraSiteResourceAccessManager
GroupManager
, UserManager
, RoleManager
and PermissionManager
instancesCentraSiteConnection
, the current logged in CentraSiteUser
and the JAAS Subject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SYSTEM_JAAS_CONTEXT_PROPERTY
System property to override the default JAAS context property (CentraSite).
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the underlying connections if need be.
|
javax.security.auth.Subject |
getAuthenticatedSubject()
Get the authenticated subject (populated with principals).
|
com.centrasite.jaxr.CentraSiteConnection |
getConnection()
Get instance of JAXR Connection.
|
CentraSiteUser |
getCurrentUser()
Get the currently logged-in user instance.
|
ExternalRepositoryManager |
getExternalRepositoryManager()
Get instance of
ExternalRepositoryManager . |
GroupManager |
getGroupManager()
Get instance of
GroupManager . |
Importer |
getImporter()
Get instance of
Importer . |
PermissionManager |
getPermissionManager()
Get instance of
PermissionManager . |
java.lang.String |
getRepositoryType()
Returns type of the external repository being currently used.
|
RoleManager |
getRoleManager()
Get instance of
RoleManager . |
com.softwareag.security.jaas.interfaces.ITokenManager |
getTokenManagerExternal()
Get the ITokenManager of the first SagUserPrincipal instance.
|
UserManager |
getUserManager()
Get instance of
UserManager . |
void |
open()
Open the underlying connections if need be.
|
static final java.lang.String SYSTEM_JAAS_CONTEXT_PROPERTY
com.centrasite.jaxr.CentraSiteConnection getConnection()
ResourceAccessManager
.CentraSiteConnection
instanceRoleManager getRoleManager() throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
RoleManager
. This method will return only a single instance per ResourceAccessManager
.RoleManager
instancejavax.xml.registry.JAXRException
- If a JAXR error occurscom.softwareag.security.jaas.principals.SagGeneralSecurityException
- If a security error occursjava.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.UserManager getUserManager() throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
UserManager
. This method will return only a single instance per ResourceAccessManager
.UserManager
instancejavax.xml.registry.JAXRException
- If a JAXR error occurscom.softwareag.security.jaas.principals.SagGeneralSecurityException
- If a security error occursjava.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.GroupManager getGroupManager() throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
GroupManager
. This method will return only a single instance per ResourceAccessManager
.GroupManager
instancejavax.xml.registry.JAXRException
- If a JAXR error occurscom.softwareag.security.jaas.principals.SagGeneralSecurityException
- If a security error occursjava.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.PermissionManager getPermissionManager() throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
PermissionManager
. This method will return only a single instance per ResourceAccessManager
.PermissionManager
instancejavax.xml.registry.JAXRException
- If a JAXR error occurscom.softwareag.security.jaas.principals.SagGeneralSecurityException
- If a security error occursjava.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.com.softwareag.security.jaas.interfaces.ITokenManager getTokenManagerExternal() throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
javax.xml.registry.JAXRException
- If a JAXR error occurscom.softwareag.security.jaas.principals.SagGeneralSecurityException
- If a security error occursExternalRepositoryManager getExternalRepositoryManager() throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
ExternalRepositoryManager
. This method will return only a single instance per ResourceAccessManager
.ExternalRepositoryManager
instancejavax.xml.registry.JAXRException
- If a JAXR error occurscom.softwareag.security.jaas.principals.SagGeneralSecurityException
- If a security error occursjava.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.Importer getImporter() throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
Importer
. This method will return only a single instance per ResourceAccessManager
.Importer
instancejavax.xml.registry.JAXRException
- If a JAXR error occurscom.softwareag.security.jaas.principals.SagGeneralSecurityException
- If a security error occursCentraSiteUser getCurrentUser()
CentraSiteUser
instance.java.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.void open() throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException, javax.security.auth.login.LoginException, java.io.IOException
ResourceAccessManagerFactory#createResourceManager(java.util.Set)
does not initiate the connection to the
external repository. It merely instantiates the ResourceAccessManager
instance. The connection to the external
repository is created only when this method is called.javax.xml.registry.JAXRException
- If a JAXR error occurscom.softwareag.security.jaas.principals.SagGeneralSecurityException
- If a security error occursjavax.security.auth.login.LoginException
- If a login error occurs while trying to open the connection. Ex: Invalid credentialsjava.io.IOException
- If an input/output error occursvoid close() throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException, javax.security.auth.login.LoginException
javax.xml.registry.JAXRException
- If a JAXR error occurscom.softwareag.security.jaas.principals.SagGeneralSecurityException
- If a security error occursjavax.security.auth.login.LoginException
- If a login error occurs while trying to close the connectionjavax.security.auth.Subject getAuthenticatedSubject()
Subject
instance.java.lang.String getRepositoryType() throws com.softwareag.security.jaas.principals.SagGeneralSecurityException
IUserRepositoryManager
provides implementation,
this is just a dummy method that will always return "OS".com.softwareag.security.jaas.principals.SagGeneralSecurityException
- In case of security errorjava.lang.IllegalStateException
- If this RAM instance is not yet opened i.e. open()
is not yet called.