uCosminexus Application Server, Security Management Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
The addAttribute method
Description
Adds an attribute to the subject. Two or more attribute values can be associated with the same attribute. Attributes added to a subject with this method are not reflected in the user management repository.
Syntax
public void addAttribute(String alias,
Object attr)
throws IllegalStateException;
Parameters
- alias:
- Specifies the attribute name to be bound to the subject.
- attr:
- Specifies the attribute value to be bound to the subject.
Exception
- java.lang.IllegalStateException:
- If the object is invalid, java.lang.IllegalStateException occurs. Note that this exception inherits from java.lang.RuntimeException and can therefore be compiled without being defined in catch or throws.
- This exception occurs when both of the following conditions coexist:
- The subject that has this object is read-only.
- The logout process is performed using the logout method.
Return value
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd