Interface JackrabbitSecurityManager
-
- All Known Implementing Classes:
DefaultSecurityManager
,SimpleSecurityManager
,UserPerWorkspaceSecurityManager
public interface JackrabbitSecurityManager
JackrabbitSecurityManager
...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 givenworkspaceName
.AccessManager
getAccessManager(Session session, AMContext amContext)
Retrieve theAccessManager
for the givensession
.AuthContext
getAuthContext(Credentials creds, Subject subject, String workspaceName)
Returns a newAuthContext
for the specified credentials and subject.PrincipalManager
getPrincipalManager(Session session)
Retrieve the principal manager for the givensession
.String
getUserID(Subject subject, String workspaceName)
Retrieve the id to be displayed uponSession.getUserID()
for the specified subject.UserManager
getUserManager(Session session)
Returns the user manager for the specifiedsession
.void
init(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 newAuthContext
for the specified credentials and subject.- Parameters:
creds
-subject
-workspaceName
- The name of the workspace to login.- Returns:
- A new
AuthContext
for the givencreds
andsubject
. - Throws:
RepositoryException
-
getAccessManager
AccessManager getAccessManager(Session session, AMContext amContext) throws RepositoryException
Retrieve theAccessManager
for the givensession
.- Parameters:
session
-amContext
-- Returns:
AccessManager
for 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
-
-