|
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.Objectoracle.portal.provider.v2.security.PortletSecurityManager
oracle.portal.provider.v2.security.AuthLevelSecurityManager
public class AuthLevelSecurityManager
DefaultSecurityManager is a simple access controller for a portlet that uses a user's authentication level to control access. A user will be granted access to a portlet if his/her authentication level is greater than or equal to the security level that has been specified for the security manager.
If you do not specify a security level for the security manager, it will default to the most secure level of operation
| Field Summary | |
|---|---|
static java.lang.String |
PUBLIC
|
static java.lang.String |
STRONG
|
static java.lang.String |
WEAK
|
| Constructor Summary | |
|---|---|
AuthLevelSecurityManager()
|
|
| Method Summary | |
|---|---|
boolean |
hasAccess(PortletReference ref,
ProviderUser user)
Verifies that the specified user's authentication level is greater than or equal to the specified security threshhold. |
boolean |
hasAccess(ProviderInstance pi,
PortletDefinition pd,
ProviderUser user)
Verifies that the specified user's authentication level is greater than or equal to the specified security threshhold. |
void |
setSecurityLevel(int level)
Sets the security threshhold for this security manager. |
void |
setSecurityLevel(java.lang.String level)
Sets the security threshhold for this security manager. |
void |
validate(java.lang.String context,
ValidationError errors)
Validates the internal state of this AuthLevelSecurityManager instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String STRONG
public static final java.lang.String WEAK
public static final java.lang.String PUBLIC
| Constructor Detail |
|---|
public AuthLevelSecurityManager()
| Method Detail |
|---|
public boolean hasAccess(ProviderInstance pi,
PortletDefinition pd,
ProviderUser user)
hasAccess in class PortletSecurityManagerpi - the provider instance from which the portlet is being
accessed.pd - 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 PortletSecurityManagerref - the portlet referenceuser - the current user we are being asked to authorize.
PortletNotFoundException
public void setSecurityLevel(java.lang.String level)
throws java.lang.IllegalStateException
level - String representation of the security level
java.lang.IllegalStateException
public void setSecurityLevel(int level)
throws java.lang.IllegalStateException
level - integer representation of the security level
java.lang.IllegalStateException
public void validate(java.lang.String context,
ValidationError errors)
AuthLevelSecurityManager instance. Errors found are
reported using the supplied ValidationError instance.
validate in interface Validateablecontext - The context of the calling instance.errors - The current list of errors.
|
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 | ||||||||