org.apache.deltaspike.security.api.authorization
Interface AccessDecisionVoterContext

All Known Subinterfaces:
EditableAccessDecisionVoterContext

public interface AccessDecisionVoterContext

Optional context which allows to get the current state as well as the results of the security check. (Optional because it requires a useful scope which depends on the environment.)


Method Summary
 Map<String,Object> getMetaData()
          Exposes the found meta-data
<T> T
getMetaDataFor(String key, Class<T> targetType)
          Exposes meta-data for the given key
<T> T
getSource()
          TODO review it (this method is new) Exposes the source e.g.
 AccessDecisionState getState()
          Exposes the current state
 List<SecurityViolation> getViolations()
          Exposes the found violations
 

Method Detail

getState

AccessDecisionState getState()
Exposes the current state

Returns:
current state

getViolations

List<SecurityViolation> getViolations()
Exposes the found violations

Returns:
found violations

getSource

<T> T getSource()
TODO review it (this method is new) Exposes the source e.g. InvocationContext

Returns:
the source which triggered the

getMetaData

Map<String,Object> getMetaData()
Exposes the found meta-data

Returns:
found meta-data

getMetaDataFor

<T> T getMetaDataFor(String key,
                     Class<T> targetType)
Exposes meta-data for the given key

Type Parameters:
T - target type
Parameters:
key - meta-data key
targetType - target type
Returns:
meta-data for the given key or null if there is no value for the given key


Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.