|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
PermissionFactory defines the interface for a class that
can create Permission instances based on:
| Method Summary | |
Permission |
createPermission(ResourceType type,
String pattern,
boolean ignoreCase,
String[] actions,
AccessControlRule acr)
Create a Permission with an associated AccessControlRule. |
Permission |
createPermission(ResourceType type,
String pattern,
boolean ignoreCase,
String[] actions,
String securityDomainName)
Create a Permission with an associated SecurityDomain delegate. |
void |
initialize(Properties prop)
Initialize the PermissionFactory. |
| Method Detail |
public void initialize(Properties prop)
throws ConfigException
prop - configuration properties.
ConfigException - if required configuration properties are
missing or invalid.
public Permission createPermission(ResourceType type,
String pattern,
boolean ignoreCase,
String[] actions,
AccessControlRule acr)
throws InvalidPermissionException
type - the ResourceType corresponding to the type of Permission.pattern - the permission resource pattern.ignoreCase - the flag controlling whether pattern matching is
case sensitive or case insensitive.actions - an array of permission actions.acr - the AccessControlRule that protects the resources matching
the created Permission.
InvalidPermissionException - if the type of Permission
associated with the Permission is not known.
public Permission createPermission(ResourceType type,
String pattern,
boolean ignoreCase,
String[] actions,
String securityDomainName)
throws InvalidPermissionException
type - the ResourceType corresponding to the type of Permission.pattern - the permission resource pattern.ignoreCase - the flag controlling whether pattern matching is
case sensitive or case insensitive.actions - an array of permission actions.securityDomainName - the name of the SecurityDomain to
which access control checks are to be delegated.
InvalidPermissionException - if the type of Permission
associated with the Permission is not known.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||