| Package | Description |
|---|---|
| org.opencastproject.security.api |
| Modifier and Type | Field and Description |
|---|---|
static Function<String,Either<Exception,AccessControlList>> |
AccessControlParser.parseAcl
Functional version of
AccessControlParser.parseAcl(String). |
static Function<String,AccessControlList> |
AccessControlParser.parseAclSilent
AccessControlParser.parseAclSilent(String) as a function. |
static Function<AccessControlList,String> |
AccessControlParser.toJsonSilent |
| Modifier and Type | Method and Description |
|---|---|
static AccessControlList |
AccessControlUtil.acl(Either<AccessControlEntry,List<AccessControlEntry>>... entries)
Constructor function for ACLs.
|
static AccessControlList |
AccessControlUtil.extendAcl(AccessControlList acl,
String role,
String action,
boolean allow)
Extends an access control list with an access control entry
|
AccessControlList |
AuthorizationService.getAclFromInputStream(InputStream in)
Gets the active permissions as specified by the given XACML.
|
AccessControlList |
AccessControlList.merge(AccessControlList acl)
Merge this access control list with another one based on roles specified within.
|
AccessControlList |
AccessControlList.mergeActions(AccessControlList acl)
Merge this access control list with another one based on actions specified within.
|
static AccessControlList |
AccessControlParser.parseAcl(InputStream in)
Unmarshals an ACL from an xml input stream.
|
static AccessControlList |
AccessControlParser.parseAcl(String serializedForm)
Parses a string into an ACL.
|
static AccessControlList |
AccessControlParser.parseAclSilent(String serializedForm)
Same like
AccessControlParser.parseAcl(String) but throws runtime exceptions in case of an error. |
static AccessControlList |
AccessControlUtil.reduceAcl(AccessControlList acl,
String role,
String action)
Reduces an access control list by an access control entry
|
| Modifier and Type | Method and Description |
|---|---|
Tuple<AccessControlList,AclScope> |
AuthorizationService.getAcl(MediaPackage mp,
AclScope scope)
Gets the access control list for a given scope associated with the given media package, as specified by its XACML
attachments.
|
Tuple<AccessControlList,AclScope> |
AuthorizationService.getActiveAcl(MediaPackage mp)
Gets the active access control list associated with the given media package, as specified by its XACML
attachments.
|
| Modifier and Type | Method and Description |
|---|---|
static Checksum |
AccessControlUtil.calculateChecksum(AccessControlList acl)
Calculate an MD5 checksum for an
AccessControlList. |
static boolean |
AccessControlUtil.equals(AccessControlList a,
AccessControlList b)
Define equality on AccessControlLists.
|
static AccessControlList |
AccessControlUtil.extendAcl(AccessControlList acl,
String role,
String action,
boolean allow)
Extends an access control list with an access control entry
|
static boolean |
AccessControlUtil.isAuthorized(AccessControlList acl,
User user,
Organization org,
Object action)
Determines whether the
AccessControlList permits a user to perform an action. |
static boolean |
AccessControlUtil.isAuthorizedAll(AccessControlList acl,
User user,
Organization org,
Object... actions)
Returns true only if all actions are authorized.
|
static boolean |
AccessControlUtil.isAuthorizedOne(AccessControlList acl,
User user,
Organization org,
Object... actions)
Returns true if at least one action is authorized.
|
static boolean |
AccessControlUtil.isProhibitedAll(AccessControlList acl,
User user,
Organization org,
Object... actions)
Returns true if all actions are prohibited.
|
static boolean |
AccessControlUtil.isProhibitedOne(AccessControlList acl,
User user,
Organization org,
Object... actions)
Returns true if at least one action is prohibited.
|
AccessControlList |
AccessControlList.merge(AccessControlList acl)
Merge this access control list with another one based on roles specified within.
|
AccessControlList |
AccessControlList.mergeActions(AccessControlList acl)
Merge this access control list with another one based on actions specified within.
|
static AccessControlList |
AccessControlUtil.reduceAcl(AccessControlList acl,
String role,
String action)
Reduces an access control list by an access control entry
|
Tuple<MediaPackage,Attachment> |
AuthorizationService.setAcl(MediaPackage mp,
AclScope scope,
AccessControlList acl)
Attaches the provided policies to a media package as a XACML attachment, replacing any previous policy element of
the same scope.
|
static String |
AccessControlParser.toJson(AccessControlList acl) |
static String |
AccessControlParser.toJsonSilent(AccessControlList acl) |
static String |
AccessControlParser.toXml(AccessControlList acl)
Serializes an AccessControlList to its XML form.
|
| Constructor and Description |
|---|
UnauthorizedException(User user,
String action,
AccessControlList acl)
Constructs an UnauthorizedException for the specified user's attempt to take a specified action.
|
Copyright © 2009–2021 Opencast Project. All rights reserved.