public class SecurityContext
extends java.lang.Object
Title: Service Event Fabric Core
Description: Defines a security context for a separate owner (user or group).
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
boolean |
authorize(AccessControlOperation operation)
Checks if the security context is authorized to perform the specified Access Control operation.
|
Group |
getGroup()
Returns a group associated with the security context.
|
java.lang.String |
getOwnerName()
Returns a name of the owner (user or group) of the security context.
|
User |
getUser()
Returns a user associated with the security context.
|
java.util.List |
listBoundComponents()
Returns a list of components bound to the security context in the current node.
|
public java.lang.String getOwnerName()
public User getUser()
User
instance.
So the object returned by this method will not reflect further changes of the corresponding user.public Group getGroup()
Group
instance.
So the object returned by this method will not reflect further changes of the corresponding group.public java.util.List listBoundComponents()
public boolean authorize(AccessControlOperation operation)
operation
- the operation to be checked.true
if the owner (user or group) can perform the specified operation, false
otherwise.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.