Class SecurityTargetConfiguration

java.lang.Object
net.datenwerke.security.service.security.SecurityTargetConfiguration

public class SecurityTargetConfiguration extends Object
Configures a security target.

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 Details

    • SecurityTargetConfiguration

      public SecurityTargetConfiguration(Securee securee, Class<? extends SecurityTarget> target, Class<?> genericTarget)
      Creates a new configuration for a target.

      The submitted class implements SecurityTarget, then the object maintains it ACL directly. Otherwise SecurityService takes over.

      Parameters:
      target -
  • Method Details

    • isGenericTarget

      public boolean isGenericTarget()
    • getGenericTarget

      public Class<?> getGenericTarget()
    • getTarget

      public Class<? extends SecurityTarget> getTarget()
    • getSecuree

      public Securee getSecuree()