Given a SecSubject object, this method should populate it with the attributes.
Syntax
boolean
attributeSubject
(
Map< String, Object >
context
,
SecSubject
subject
,
String
id
) throws SecException
Parameters
-
subject –
subject that should be attributed (this subject may be just a container to hold the attributes, it may not have been populated with an ID attribute).
-
context –
CSI context
-
id –
The ID to look up the subject when retrieving attributes.
Returns
true if the attributer contributed any attributes to the subject; false otherwise
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
This method will be called to populate
SecSubject
attributes when a CSI client first attempts to retrieve attributes. The subject may not have been authenticated so an ID attribute may not be available in the subject. The supplied ID parameter should be used to identify the subject and retrieve the attribute values.
true if the attributer contributed any attributes to the subject; false otherwise