If the input resource ID is recognized by this attributer, populate the supplied SecResource with attributes and/or principals as appropriate.
Syntax
boolean
attributeResource
(
Map< String, Object >
context
,
SecResource
resource
,
String
id
) throws SecException
Parameters
-
resource –
add attributes to this object if the attributer knows anything about the given ID.
-
context –
CSI context
-
id –
the ID of the resource to retrieve
Returns
true if the resource object was recognized and modified
Exceptions
-
SecException class –
Thrown if an error occurs. The exception will be logged and after that it is as if the method returned false.
Usage
The implementation of this method should additionally populate the resource with any resource types if it recognizes the ID.
This method is indirectly called when the CSI client calls
SecContext.getResource(String)
.
true if the resource object was recognized and modified