SecurityManager.hasRole

Returns true when a user is logged on and the user has the role identified by roleName, otherwise returns false. User roles are established by the System Logon Service when the user logs on.

Further documentation.

returns boolean

Parameters

java.lang.String  roleName,