com.bea.security.providers.authorization.asi
Interface EvaluationFunctionSample
- public interface EvaluationFunctionSample
Sample interface for implementing java ATZ evaluation functions.
The public method "string_longer_then" may be invoked to perform complex evaluations on attribute, or external data,
while certain policy contains evaluation function with name "string_longer_then".
One custom evaluation function must follow rules:
1. be public method.
2. have the same signature with the sample method: string_longer_then
.
3. method name will be the evaluation function name.
- Author:
- Copyright © 2006 BEA Systems, Inc. All Rights Reserved.
Method Summary
|
boolean |
string_longer_then(RequestHandle requestHandle,
java.lang.Object[] args,
javax.security.auth.Subject subject,
java.util.Map roles,
weblogic.security.spi.Resource resource,
weblogic.security.service.ContextHandler contextHandler)
named evaluation function. |
string_longer_then
public boolean string_longer_then(RequestHandle requestHandle,
java.lang.Object[] args,
javax.security.auth.Subject subject,
java.util.Map roles,
weblogic.security.spi.Resource resource,
weblogic.security.service.ContextHandler contextHandler)
throws com.wles.arme.MissingAttributeException
- named evaluation function. Additional authorization request data
is made available to allow for more complex attribute evaluation.
This method will be registered to ARME, and be invoked while the policy contains a
custom evaluation function with name "string_longer_then".
- Parameters:
requestHandle
- the attributes container associated with the request, through which the function
can get required attribute value.args
- an array of function arguments. Each element is either null
, or a Stringsubject
- the subject associated with the requestroles
- the role membership of the subject
key: role name.
value: role object
null
if function is called during role mappingresource
- the resource associated with the requestcontextHandler
- the context associated with the request, may be null
if non-existant- Returns:
true
or false
as the result of the function- Throws:
- com.wles.arme.MissingAttributeException - for can not get required attribute value.