Annotation Interface SecuredEntity
This system provides a great deal of functionality. If nothing else is specified, the user will be able to Allow or Deny access to the class, method, or intent that this is applied to.
If this annotation provides a configPropDescriptionFactory, that will be used to build a UI based on DescriptiveProperties for options that can be set for the particular Identity. Then, when a call is made from that identity, the user configured settings will be built into a map, and included in the SecurityContext of the call. If a configFactory is specified, that will be used to build a configuration object instead of a simple map. This can be very convenient for the service implementation, because it can do things like call "myCustomObject.verifyAccess(...call specific parameters...)", instead of having to implement the logic itself. This allows better reuse of security code across different method calls.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumstatic interfacestatic interfaceThis factory provides a list (display order will follow list order) of DescriptiveProperties for security restrictions/properties that can be set.static classstatic class
- 
Required Element SummaryRequired Elements
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionClass<? extends SecuredEntity.ConfigFactory>If specified, this factory will be used to create a configuration object out of the defined properties that will be set on the security context.Class<? extends SecuredEntity.ConfigPropDescriptionFactory>If this entity has config properties that can be set, this class generates the description of them.Defines the default access level for the entity, which can be overridden in the security settings.Bundle key for a description of this restriction.Bundle key for the name of this restriction.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final DescriptiveProperty<SecuredEntity.AccessLevel>All SecuredEntities at least have an access level, if nothing else.static final StringThe configuration of a security entity is stored in the Security Context under this key.static final String
- 
Field Details- 
ACCESS_LEVELAll SecuredEntities at least have an access level, if nothing else.
- 
KEY_CLASS_CONFIGThe configuration of a security entity is stored in the Security Context under this key.- See Also:
 
- 
KEY_METHOD_CONFIG- See Also:
 
 
- 
- 
Element Details- 
idString idAn id that is used to link this annotated object to its configuration. Usually is unique throughout the system, though entities that share the same id will share the same settings. However, only one instance of the config is used, so the best practice is to define the SecuredEntity on a marker interface, and then have all of the objects implement it, so that there is only a single actual definition. Is not displayed, so may be a UUID or other non-friendly string.
 
- 
- 
- 
nameKeyString nameKeyBundle key for the name of this restriction. If not specified, a name will automatically be generated.- Default:
- ""
 
- 
descKeyString descKeyBundle key for a description of this restriction. If not specified, no description will be shown.- Default:
- ""
 
- 
configPropDescriptionFactoryClass<? extends SecuredEntity.ConfigPropDescriptionFactory> configPropDescriptionFactoryIf this entity has config properties that can be set, this class generates the description of them.- Default:
- com.inductiveautomation.ignition.gateway.gan.security.SecuredEntity.DefaultConfigPropDescriptionFactory.class
 
- 
configFactoryClass<? extends SecuredEntity.ConfigFactory> configFactoryIf specified, this factory will be used to create a configuration object out of the defined properties that will be set on the security context. If not specified, the configured properties will be set on the SecurityContext as a map.- Default:
- com.inductiveautomation.ignition.gateway.gan.security.SecuredEntity.DefaultConfigFactory.class
 
- 
defaultAccessLevelSecuredEntity.AccessLevel defaultAccessLevelDefines the default access level for the entity, which can be overridden in the security settings.- Default:
- Allow
 
 
-