Package | Description |
---|---|
org.picketlink.authorization.util |
Modifier and Type | Method and Description |
---|---|
static boolean |
AuthorizationUtil.hasPartition(Identity identity,
Class<?> partitionType,
String... partitionNames)
Checks if an authenticated user is associated with a partition with the given type and name.
|
static boolean |
AuthorizationUtil.hasPermission(Identity identity,
Object resource,
Class<?> resourceClass,
Serializable resourceIdentifier,
String operation)
Checks if the user has permissions to a resource considering an operation.
|
static boolean |
AuthorizationUtil.hasRole(Identity identity,
PartitionManager partitionManager,
String roleName)
Checks if an authenticated user is granted with a role with the given name.
|
static boolean |
AuthorizationUtil.isLoggedIn(Identity identity)
Checks if the user is logged in.
|
static boolean |
AuthorizationUtil.isMember(Identity identity,
PartitionManager partitionManager,
String groupName)
Checks if an authenticated user is member of the a group with the given name.
|
Copyright © 2018 JBoss by Red Hat. All rights reserved.