Hitachi

uCosminexus Application Server Security Management Guide


The size method

Organization of this page

Description

Obtains the total number of attributes bound to the subject.

Syntax

public int size()
  throws IllegalStateException;

Parameters

None

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

The total number of attributes associated with the subject