Interface JackrabbitSecurityManager
-
- All Known Implementing Classes:
DefaultSecurityManager,SimpleSecurityManager,UserPerWorkspaceSecurityManager
public interface JackrabbitSecurityManagerJackrabbitSecurityManager...
-
-
Method Summary
All Methods Instance Methods Abstract 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.AccessManagergetAccessManager(Session session, AMContext amContext)Retrieve theAccessManagerfor the givensession.AuthContextgetAuthContext(Credentials creds, Subject subject, String workspaceName)Returns a newAuthContextfor the specified credentials and subject.PrincipalManagergetPrincipalManager(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
-
init
void init(Repository repository, Session systemSession) throws RepositoryException
- Throws:
RepositoryException
-
dispose
void dispose(String workspaceName)
Disposes those parts of this security manager that are related to the workspace indicated by the givenworkspaceName.- Parameters:
workspaceName- Name of the workspace that is being disposed.
-
close
void close()
Disposes this security manager instance and cleans all internal caches.
-
getAuthContext
AuthContext getAuthContext(Credentials creds, Subject subject, String workspaceName) throws RepositoryException
Returns a newAuthContextfor the specified credentials and subject.- Parameters:
creds-subject-workspaceName- The name of the workspace to login.- Returns:
- A new
AuthContextfor the givencredsandsubject. - Throws:
RepositoryException
-
getAccessManager
AccessManager getAccessManager(Session session, AMContext amContext) throws RepositoryException
Retrieve theAccessManagerfor the givensession.- Parameters:
session-amContext-- Returns:
AccessManagerfor the specifiedsession.- Throws:
RepositoryException
-
getPrincipalManager
PrincipalManager getPrincipalManager(Session session) throws RepositoryException
Retrieve the principal manager for the givensession.- Parameters:
session-- Returns:
- PrincipalManager for the given
session. - Throws:
UnsupportedRepositoryOperationException- If principal management is not supported.RepositoryException- if an error occurs
-
getUserManager
UserManager getUserManager(Session session) throws RepositoryException
Returns the user manager for the specifiedsession.- Parameters:
session-- Returns:
- UserManager for the given
session. - Throws:
UnsupportedRepositoryOperationException- If user management is not supported.RepositoryException
-
getUserID
String getUserID(Subject subject, String workspaceName) throws RepositoryException
Retrieve the id to be displayed uponSession.getUserID()for the specified subject.- Parameters:
subject-workspaceName-- Returns:
- userID to be displayed upon
Session.getUserID(). - Throws:
RepositoryException
-
-