|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.portal.provider.v2.security.PortletSecurityManager oracle.portal.provider.v2.security.DenyAllSecurityManager
public class DenyAllSecurityManager
DenyAllSecurityManager is a simple security manager that always denys access regardless of the user or portlet instance. This can be used to test security features or make a portlet temporarily inaccessible to all users.
Constructor Summary | |
---|---|
DenyAllSecurityManager()
|
Method Summary | |
---|---|
boolean |
hasAccess(PortletReference ref,
ProviderUser user)
Verifies whether the user is authorized to use this particular portlet instance. |
boolean |
hasAccess(ProviderInstance pi,
PortletDefinition p,
ProviderUser user)
Verifies whether the user is authorized to use this Portlet. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DenyAllSecurityManager()
Method Detail |
---|
public boolean hasAccess(ProviderInstance pi, PortletDefinition p, ProviderUser user)
hasAccess
in class PortletSecurityManager
pi
- the provider instance from which the portlet is being
accessed.p
- the definition of the portlet which we want to authorize
access to.user
- the current user we are being asked to authorize.
public boolean hasAccess(PortletReference ref, ProviderUser user) throws PortletNotFoundException
hasAccess
in class PortletSecurityManager
ref
- portlet referenceuser
- the current user we are being asked to authorize.
PortletNotFoundException
|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |