|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.security.simple.SimpleSecurityManager
public class SimpleSecurityManager
SimpleSecurityManager
: simple implementation ignoring both
configuration entries for 'principalProvider' and for 'workspaceAccessManager'.
The AccessManager is initialized using
AccessManager.init(org.apache.jackrabbit.core.security.AMContext)
.
Constructor Summary | |
---|---|
SimpleSecurityManager()
|
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 SimpleSecurityManager()
Method Detail |
---|
public void init(Repository repository, Session systemSession) throws RepositoryException
init
in interface JackrabbitSecurityManager
RepositoryException
JackrabbitSecurityManager.init(Repository, Session)
public void dispose(String workspaceName)
JackrabbitSecurityManager
workspaceName
.
dispose
in interface JackrabbitSecurityManager
workspaceName
- Name of the workspace that is being disposed.JackrabbitSecurityManager.dispose(String)
public void close()
JackrabbitSecurityManager
close
in interface JackrabbitSecurityManager
JackrabbitSecurityManager.close()
public AccessManager getAccessManager(Session session, AMContext amContext) throws RepositoryException
JackrabbitSecurityManager
AccessManager
for the given session
.
getAccessManager
in interface JackrabbitSecurityManager
AccessManager
for the specified session
.
RepositoryException
JackrabbitSecurityManager.getAccessManager(Session,AMContext)
public PrincipalManager getPrincipalManager(Session session) throws RepositoryException
JackrabbitSecurityManager
session
.
getPrincipalManager
in interface JackrabbitSecurityManager
session
.
UnsupportedRepositoryOperationException
- If principal management
is not supported.
RepositoryException
- if an error occursJackrabbitSecurityManager.getPrincipalManager(Session)
public UserManager getUserManager(Session session) throws RepositoryException
JackrabbitSecurityManager
session
.
getUserManager
in interface JackrabbitSecurityManager
session
.
UnsupportedRepositoryOperationException
- If user management is
not supported.
RepositoryException
JackrabbitSecurityManager.getUserManager(Session)
public String getUserID(Subject subject) throws RepositoryException
JackrabbitSecurityManager
Session.getUserID()
for
the specified subject.
getUserID
in interface JackrabbitSecurityManager
Session.getUserID()
.
RepositoryException
JackrabbitSecurityManager.getUserID(Subject)
public AuthContext getAuthContext(Credentials creds, Subject subject) throws RepositoryException
Credentials
and
Subject
.
getAuthContext
in interface JackrabbitSecurityManager
AuthContext
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 |