asProperty| Modifier and Type | Field and Description |
|---|---|
static SecurityContext |
READ_ONLY
A security context with hardcoded permissions to read resources, write and execute operations are not allowed.
|
static SecurityContext |
RWX
A security context with hardcoded permissions to read, write and execute any resource.
|
| Constructor and Description |
|---|
SecurityContext(ModelNode payload) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExecutable(String operation) |
boolean |
isReadable() |
boolean |
isReadable(String attribute) |
boolean |
isWritable() |
boolean |
isWritable(String attribute) |
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addEmptyList, addEmptyObject, addExpression, as, asBigDecimal, asBigInteger, asBoolean, asBoolean, asBytes, asDouble, asDouble, asInt, asInt, asList, asLong, asLong, asObject, asProperty, asPropertyList, asString, asType, clear, clone, equals, equals, format, fromBase64, get, get, get, getFailureDescription, getType, has, has, hasDefined, hasDefined, hashCode, isDefined, isFailure, jsAsList, jsAsProperties, jsCreate, jsGetJSONString, keys, protect, remove, require, require, resolve, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setEmptyList, setEmptyObject, setExpression, setExpression, toBase64String, toJSONString, toJSONString, toString, writeExternalpublic static final SecurityContext READ_ONLY
public static final SecurityContext RWX
@JsIgnore public SecurityContext(ModelNode payload)
@JsProperty public boolean isReadable()
@JsProperty public boolean isWritable()
public boolean isReadable(String attribute)
attribute - The attribute to check.public boolean isWritable(String attribute)
attribute - The attribute to check.public boolean isExecutable(String operation)
operation - The operation to check.Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.