## Uses of Class
org.restlet.security.Role

Packages that use Role
Package | Description
--- | ---
org.restlet | Core classes of the API.
org.restlet.data | Information exchanged by components.
org.restlet.engine.security | Supports security.
org.restlet.security | Classes related to security.

### Uses of Role in org.restlet

Methods in org.restlet that return Role
Modifier and Type | Method and Description
--- | ---
`Role` | Application.`getRole(java.lang.String name)` Returns the role associated to the given name.

Methods in org.restlet that return types with arguments of type Role
Modifier and Type | Method and Description
--- | ---
`java.util.List<Role>` | Application.`getRoles()` Returns the modifiable list of roles.

Method parameters in org.restlet with type arguments of type Role
Modifier and Type | Method and Description
--- | ---
`void` | Application.`setRoles(java.util.List<Role> roles)` Sets the modifiable list of roles.

### Uses of Role in org.restlet.data

Methods in org.restlet.data that return types with arguments of type Role
Modifier and Type | Method and Description
--- | ---
`java.util.List<Role>` | ClientInfo.`getRoles()` Returns the authenticated user roles.

Method parameters in org.restlet.data with type arguments of type Role
Modifier and Type | Method and Description
--- | ---
`void` | ClientInfo.`setRoles(java.util.List<Role> roles)` Sets the authenticated user roles.

### Uses of Role in org.restlet.engine.security

Methods in org.restlet.engine.security that return Role
Modifier and Type | Method and Description
--- | ---
`Role` | RoleMapping.`getTarget()`

Methods in org.restlet.engine.security with parameters of type Role
Modifier and Type | Method and Description
--- | ---
`void` | RoleMapping.`setTarget(Role target)`

Constructors in org.restlet.engine.security with parameters of type Role
Constructor and Description
`RoleMapping(java.lang.Object source, Role target)` Constructor.

### Uses of Role in org.restlet.security

Fields in org.restlet.security declared as Role
Modifier and Type | Field and Description
--- | ---
`static Role` | Role.`ALL` Unmodifiable role that covers all existing roles.

Methods in org.restlet.security that return types with arguments of type Role
Modifier and Type | Method and Description
--- | ---
`java.util.Set<Role>` | MemoryRealm.`findRoles(Group userGroup)` Finds the roles mapped to given user group.
`java.util.Set<Role>` | MemoryRealm.`findRoles(java.util.Set<Group> userGroups)` Finds the roles mapped to given user groups.
`java.util.Set<Role>` | MemoryRealm.`findRoles(User user)` Finds the roles mapped to a given user.
`java.util.List<Role>` | RoleAuthorizer.`getAuthorizedRoles()` Returns the modifiable list of authorized roles.
`java.util.List<Role>` | Role.`getChildRoles()` Returns the modifiable list of child roles.
`java.util.List<Role>` | RoleAuthorizer.`getForbiddenRoles()` Returns the modifiable list of forbidden roles.

Methods in org.restlet.security with parameters of type Role
Modifier and Type | Method and Description
--- | ---
`void` | MemoryRealm.`map(Group group, Role role)` Maps a group defined in a component to a role defined in the application.
`void` | MemoryRealm.`map(User user, Role role)` Maps a user defined in a component to a role defined in the application.
`void` | MemoryRealm.`unmap(Group group, Role role)` Unmaps a group defined in a component from a role defined in the application.
`void` | MemoryRealm.`unmap(User user, Role role)` Unmaps a user defined in a component from a role defined in the application.

Method parameters in org.restlet.security with type arguments of type Role
Modifier and Type | Method and Description
--- | ---
`void` | RoleAuthorizer.`setAuthorizedRoles(java.util.List<Role> authorizedRoles)` Sets the modifiable list of authorized roles.
`void` | Role.`setChildRoles(java.util.List<Role> childRoles)` Sets the modifiable list of child roles.
`void` | RoleAuthorizer.`setForbiddenRoles(java.util.List<Role> forbiddenRoles)` Sets the modifiable list of forbidden roles.