public class RegisteredUsersSecurityPolicy extends StandardSecurityPolicy
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DENIED, GRANTED, UNSPECIFIED
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
RegisteredUsersSecurityPolicy() |
Modifier and Type | Method and Description |
---|---|
protected User |
getCurrentUser()
Calculates the current users.
|
UserAuthority |
getUserAuthority()
Returns the user authority for identities that are valid for
registered users.
|
boolean |
hasAccess(java.lang.Object pObject,
User pUser,
AccessRight pRight)
Returns true if a user may perform a particular operation on
an object.
|
protected boolean |
isRegisteredUser(User pUser)
Checks to see if the indicated user is a registered (logged-in) user.
|
void |
setUserAuthority(UserAuthority pAuthority)
Changes the user authority for identities that are valid for
registered users.
|
checkAccess, getAccess, getCompatiblePersona, getCompatiblePersonae, getCompleteAccessControlList, getCreationAccessControlList, getCreationAccessControlList, getCreationOwner, getCreationOwnerAccessControlList, getCreationSubPersonaeAccessControlList, getEffectiveAccessControlList, getImpliedAccessControlList, getUserPersonae
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public UserAuthority getUserAuthority()
public void setUserAuthority(UserAuthority pAuthority)
protected User getCurrentUser()
getCurrentUser
in class StandardSecurityPolicy
protected boolean isRegisteredUser(User pUser)
public boolean hasAccess(java.lang.Object pObject, User pUser, AccessRight pRight) throws SecurityException
hasAccess
in interface SecurityPolicy
hasAccess
in class StandardSecurityPolicy
SecurityException
StandardSecurityPolicy.getCurrentUser()