Oracle Entitlements Server for Java API Reference

com.bea.security
Class UserInfo

java.lang.Object
  |
  +--com.bea.security.UserInfo

public class UserInfo
extends java.lang.Object

UserInfo is contains information about "user" making an authorization request This class is used by DebugInfo.

Author:
Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.

Method Summary
 java.lang.String[] getGroupNames()
          Gets the groups to which the user belongs.
 java.lang.String getName()
          Gets the name of the user
 java.lang.String[] getQualifiedGroupNames()
          Gets the fully groups to which the user belongs.
 java.lang.String getQualifiedName()
          Gets the fully qualified name of the user.
 java.lang.String toString()
          Gets a string representation of the UserInfo object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Gets the name of the user

Returns:
Returns the name of the user

getQualifiedName

public java.lang.String getQualifiedName()
Gets the fully qualified name of the user.

Returns:
Returns the fully qualified name of the user. For eg. //user/asi/system/

getGroupNames

public java.lang.String[] getGroupNames()
Gets the groups to which the user belongs.

Returns:
Returns the groups to which the user belongs.

getQualifiedGroupNames

public java.lang.String[] getQualifiedGroupNames()
Gets the fully groups to which the user belongs.

Returns:
Returns the fully groups to which the user belongs. For eg. //sgrp/asi/allusers/

toString

public java.lang.String toString()
Gets a string representation of the UserInfo object

Returns:
Returns a string representation of this object which can be used as "System.out.println(userInfo.toString())" Sample output:
 UserInfo:
 Name: //user/asi/system/
 Groups: //sgrp/asi/some_group/ //sgrp/asi/allusers/
 
Overrides:
toString in class java.lang.Object