public class SecurityTargetConfiguration
extends java.lang.Object
A security target is either a class or a specific entity object. The
SecurityTargetConfiguration is used to define what securees are
interested in the target and what rights are defined.
Two types of security targets exist. A Generic Target is anything that is not
an entity and hence cannot store their own ACL. A special entity object
(GenericSecurityTargetEntity) is created that stores the ACL for the
generic target.
| Constructor and Description |
|---|
SecurityTargetConfiguration(Securee securee,
java.lang.Class<? extends SecurityTarget> target,
java.lang.Class<?> genericTarget)
Creates a new configuration for a target.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getGenericTarget() |
Securee |
getSecuree() |
java.lang.Class<? extends SecurityTarget> |
getTarget() |
boolean |
isGenericTarget() |
public SecurityTargetConfiguration(Securee securee, java.lang.Class<? extends SecurityTarget> target, java.lang.Class<?> genericTarget)
The submitted class implements SecurityTarget, then the object maintains it ACL directly. Otherwise SecurityService takes over.
target - public boolean isGenericTarget()
public java.lang.Class<?> getGenericTarget()
public java.lang.Class<? extends SecurityTarget> getTarget()
public Securee getSecuree()