|
||||||||||
| 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(String workspaceName)
Disposes those parts of this security manager that are related to the workspace indicated by the given workspaceName. |
AccessManager |
getAccessManager(Session session,
AMContext amContext)
Retrieve the AccessManager for the given session. |
AuthContext |
getAuthContext(Credentials creds,
Subject subject)
Creates an AuthContext for the given Credentials and
Subject. |
PrincipalManager |
getPrincipalManager(Session session)
Retrieve the principal manager for the given session. |
String |
getUserID(Subject subject)
Retrieve the id to be displayed upon Session.getUserID() for
the specified subject. |
UserManager |
getUserManager(Session session)
Returns the user manager for the specified session. |
void |
init(Repository repository,
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(Repository repository,
Session systemSession)
throws RepositoryException
init in interface JackrabbitSecurityManagerRepositoryExceptionJackrabbitSecurityManager.init(Repository, Session)public void dispose(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(Session session,
AMContext amContext)
throws RepositoryException
JackrabbitSecurityManagerAccessManager for the given session.
getAccessManager in interface JackrabbitSecurityManagerAccessManager for the specified session.
RepositoryExceptionJackrabbitSecurityManager.getAccessManager(Session,AMContext)
public PrincipalManager getPrincipalManager(Session session)
throws RepositoryException
JackrabbitSecurityManagersession.
getPrincipalManager in interface JackrabbitSecurityManagersession.
UnsupportedRepositoryOperationException - If principal management
is not supported.
RepositoryException - if an error occursJackrabbitSecurityManager.getPrincipalManager(Session)
public UserManager getUserManager(Session session)
throws RepositoryException
JackrabbitSecurityManagersession.
getUserManager in interface JackrabbitSecurityManagersession.
UnsupportedRepositoryOperationException - If user management is
not supported.
RepositoryExceptionJackrabbitSecurityManager.getUserManager(Session)
public String getUserID(Subject subject)
throws RepositoryException
JackrabbitSecurityManagerSession.getUserID() for
the specified subject.
getUserID in interface JackrabbitSecurityManagerSession.getUserID().
RepositoryExceptionJackrabbitSecurityManager.getUserID(Subject)
public AuthContext getAuthContext(Credentials creds,
Subject subject)
throws RepositoryException
Credentials and
Subject.
getAuthContext in interface JackrabbitSecurityManagerAuthContext for the given Credentials, Subject
RepositoryException - in other exceptional repository states
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||