Package org.glassfish.api.admin
Interface AdminCommandSecurity.AccessCheckProvider
- Enclosing interface:
- AdminCommandSecurity
public static interface AdminCommandSecurity.AccessCheckProvider
Behavior required of all command classes which provide any of their own custom authorization enforcement. The system
will invoke the class's
getAccessChecks
method after it has injected @Inject
and @Param
fields and after it has invoked any @PostConstruct
methods. The getAccessChecks method returns one or more
AccessRequired.AccessCheck
objects, indicating additional authorization checking that secure admin should perform beyond
what is triggered by the annotations.-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends AccessRequired.AccessCheck>
Returns theAccessCheck
s the command has computed at runtime which should be included in the authorization, added to checks that secure admin infers from the command's CRUD or RestEndpoint characteristics orAccessRequired
annotations.
-
Method Details
-
getAccessChecks
Collection<? extends AccessRequired.AccessCheck> getAccessChecks()Returns theAccessCheck
s the command has computed at runtime which should be included in the authorization, added to checks that secure admin infers from the command's CRUD or RestEndpoint characteristics orAccessRequired
annotations.- Returns:
- the
AccessCheck
s
-