|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.DefaultSecurityManager
public class DefaultSecurityManager
The security manager acts as central managing class for all security related operations on a low-level non-protected level. It manages the
| Constructor Summary | |
|---|---|
DefaultSecurityManager()
|
|
| Method Summary | |
|---|---|
void |
close()
Disposes this security manager instance and cleans all internal caches. |
void |
dispose(java.lang.String workspaceName)
Disposes those parts of this security manager that are related to the workspace indicated by the given workspaceName. |
AccessManager |
getAccessManager(javax.jcr.Session session,
AMContext amContext)
Retrieve the AccessManager for the given session. |
AuthContext |
getAuthContext(javax.jcr.Credentials creds,
javax.security.auth.Subject subject)
Creates an AuthContext for the given Credentials and
Subject.This includes selection of application specific LoginModules and initialization with credentials and Session to System-Workspace |
PrincipalManager |
getPrincipalManager(javax.jcr.Session session)
Retrieve the principal manager for the given session. |
java.lang.String |
getUserID(javax.security.auth.Subject subject)
Retrieve the id to be displayed upon Session.getUserID() for
the specified subject. |
UserManager |
getUserManager(javax.jcr.Session session)
Returns the user manager for the specified session. |
void |
init(javax.jcr.Repository repository,
javax.jcr.Session systemSession)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSecurityManager()
| Method Detail |
|---|
public void init(javax.jcr.Repository repository,
javax.jcr.Session systemSession)
throws javax.jcr.RepositoryException
init in interface JackrabbitSecurityManagerjavax.jcr.RepositoryExceptionJackrabbitSecurityManager.init(Repository, Session)public void dispose(java.lang.String workspaceName)
JackrabbitSecurityManagerworkspaceName.
dispose in interface JackrabbitSecurityManagerworkspaceName - Name of the workspace that is being disposed.JackrabbitSecurityManager.dispose(String)public void close()
JackrabbitSecurityManager
close in interface JackrabbitSecurityManagerJackrabbitSecurityManager.close()
public AccessManager getAccessManager(javax.jcr.Session session,
AMContext amContext)
throws javax.jcr.RepositoryException
JackrabbitSecurityManagerAccessManager for the given session.
getAccessManager in interface JackrabbitSecurityManagerAccessManager for the specified session.
javax.jcr.RepositoryExceptionJackrabbitSecurityManager.getAccessManager(Session,AMContext)
public PrincipalManager getPrincipalManager(javax.jcr.Session session)
throws javax.jcr.RepositoryException
JackrabbitSecurityManagersession.
getPrincipalManager in interface JackrabbitSecurityManagersession.
javax.jcr.UnsupportedRepositoryOperationException - If principal management
is not supported.
javax.jcr.RepositoryException - if an error occursJackrabbitSecurityManager.getPrincipalManager(Session)
public UserManager getUserManager(javax.jcr.Session session)
throws javax.jcr.RepositoryException
JackrabbitSecurityManagersession.
getUserManager in interface JackrabbitSecurityManagersession.
javax.jcr.UnsupportedRepositoryOperationException - If user management is
not supported.
javax.jcr.RepositoryExceptionJackrabbitSecurityManager.getUserManager(Session)
public java.lang.String getUserID(javax.security.auth.Subject subject)
throws javax.jcr.RepositoryException
JackrabbitSecurityManagerSession.getUserID() for
the specified subject.
getUserID in interface JackrabbitSecurityManagerSession.getUserID().
javax.jcr.RepositoryExceptionJackrabbitSecurityManager.getUserID(Subject)
public AuthContext getAuthContext(javax.jcr.Credentials creds,
javax.security.auth.Subject subject)
throws javax.jcr.RepositoryException
Credentials and
Subject.
getAuthContext in interface JackrabbitSecurityManagerAuthContext for the given Credentials, Subject
javax.jcr.RepositoryException - in other exceptional repository states
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||