Hitachi

uCosminexus Application Server Security Management Guide


The removeAttribute method

Organization of this page

Description

Deletes one or more attributes bound to the subject. The deleted attributes are not reflected in the user management repository. If two or more attribute values are bound to the subject, all of these values are deleted.

Syntax

public void removeAttribute(String alias)
  throws IllegalStateException;

Parameter

alias:

Specifies the attribute name bound to the subject. If the alias of the attribute is specified in the AttributeEntry class, specify that alias.

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

None