Class SimpleSecurityManager
- java.lang.Object
- 
- org.apache.jackrabbit.core.security.simple.SimpleSecurityManager
 
- 
- All Implemented Interfaces:
- JackrabbitSecurityManager
 
 public class SimpleSecurityManager extends Object implements JackrabbitSecurityManager SimpleSecurityManager: simple implementation ignoring both configuration entries for 'principalProvider' and for 'workspaceAccessManager'. The AccessManager is initialized usingAccessManager.init(org.apache.jackrabbit.core.security.AMContext).
- 
- 
Constructor SummaryConstructors Constructor Description SimpleSecurityManager()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Disposes this security manager instance and cleans all internal caches.voiddispose(String workspaceName)Disposes those parts of this security manager that are related to the workspace indicated by the givenworkspaceName.protected AccessControlProvidergetAccessControlProvider(Session systemSession, String workspaceName)Always returnsnull.AccessManagergetAccessManager(Session session, AMContext amContext)Retrieve theAccessManagerfor the givensession.AuthContextgetAuthContext(Credentials creds, Subject subject, String workspaceName)Creates an AuthContext for the givenCredentialsandSubject.
 This includes selection of applicatoin specific LoginModules and initalization with credentials and Session to System-WorkspacePrincipalManagergetPrincipalManager(Session session)Retrieve the principal manager for the givensession.StringgetUserID(Subject subject, String workspaceName)Retrieve the id to be displayed uponSession.getUserID()for the specified subject.UserManagergetUserManager(Session session)Returns the user manager for the specifiedsession.voidinit(Repository repository, Session systemSession)
 
- 
- 
- 
Method Detail- 
getAccessControlProviderprotected AccessControlProvider getAccessControlProvider(Session systemSession, String workspaceName) Always returnsnull. AccessControlProvider configuration is ignored with this security manager. Subclasses may overwrite this lazy behavior that originates from theSimpleAccessManager.- Parameters:
- systemSession- The system session used to init the security manager.
- workspaceName- The name of the workspace for which the provider should be retrieved.
- Returns:
- Always returns null.
 
 - 
initpublic void init(Repository repository, Session systemSession) throws RepositoryException - Specified by:
- initin interface- JackrabbitSecurityManager
- Throws:
- RepositoryException
- See Also:
- JackrabbitSecurityManager.init(Repository, Session)
 
 - 
disposepublic void dispose(String workspaceName) Description copied from interface:JackrabbitSecurityManagerDisposes those parts of this security manager that are related to the workspace indicated by the givenworkspaceName.- Specified by:
- disposein interface- JackrabbitSecurityManager
- Parameters:
- workspaceName- Name of the workspace that is being disposed.
- See Also:
- JackrabbitSecurityManager.dispose(String)
 
 - 
closepublic void close() Description copied from interface:JackrabbitSecurityManagerDisposes this security manager instance and cleans all internal caches.- Specified by:
- closein interface- JackrabbitSecurityManager
- See Also:
- JackrabbitSecurityManager.close()
 
 - 
getAccessManagerpublic AccessManager getAccessManager(Session session, AMContext amContext) throws RepositoryException Description copied from interface:JackrabbitSecurityManagerRetrieve theAccessManagerfor the givensession.- Specified by:
- getAccessManagerin interface- JackrabbitSecurityManager
- Returns:
- AccessManagerfor the specified- session.
- Throws:
- RepositoryException
- See Also:
- JackrabbitSecurityManager.getAccessManager(Session,AMContext)
 
 - 
getPrincipalManagerpublic PrincipalManager getPrincipalManager(Session session) throws RepositoryException Description copied from interface:JackrabbitSecurityManagerRetrieve the principal manager for the givensession.- Specified by:
- getPrincipalManagerin interface- JackrabbitSecurityManager
- Returns:
- PrincipalManager for the given session.
- Throws:
- UnsupportedRepositoryOperationException- If principal management is not supported.
- RepositoryException- if an error occurs
- See Also:
- JackrabbitSecurityManager.getPrincipalManager(Session)
 
 - 
getUserManagerpublic UserManager getUserManager(Session session) throws RepositoryException Description copied from interface:JackrabbitSecurityManagerReturns the user manager for the specifiedsession.- Specified by:
- getUserManagerin interface- JackrabbitSecurityManager
- Returns:
- UserManager for the given session.
- Throws:
- UnsupportedRepositoryOperationException- If user management is not supported.
- RepositoryException
- See Also:
- JackrabbitSecurityManager.getUserManager(Session)
 
 - 
getUserIDpublic String getUserID(Subject subject, String workspaceName) throws RepositoryException Description copied from interface:JackrabbitSecurityManagerRetrieve the id to be displayed uponSession.getUserID()for the specified subject.- Specified by:
- getUserIDin interface- JackrabbitSecurityManager
- Returns:
- userID to be displayed upon Session.getUserID().
- Throws:
- RepositoryException
- See Also:
- JackrabbitSecurityManager.getUserID(javax.security.auth.Subject, String)
 
 - 
getAuthContextpublic AuthContext getAuthContext(Credentials creds, Subject subject, String workspaceName) throws RepositoryException Creates an AuthContext for the givenCredentialsandSubject.
 This includes selection of applicatoin specific LoginModules and initalization with credentials and Session to System-Workspace- Specified by:
- getAuthContextin interface- JackrabbitSecurityManager
- workspaceName- The name of the workspace to login.
- Returns:
- an AuthContextfor the given Credentials, Subject
- Throws:
- RepositoryException- in other exceptional repository states
 
 
- 
 
-