public interface Restrictor
Modifier and Type | Method and Description |
---|---|
boolean |
isAttributeReadAllowed(ObjectName pName,
String pAttribute)
Check whether reading of an attribute is allowed
|
boolean |
isAttributeWriteAllowed(ObjectName pName,
String pAttribute)
Check whether writing of an attribute is allowed
|
boolean |
isHttpMethodAllowed(HttpMethod pMethod)
Check whether the HTTP method with which the request
was sent is allowed.
|
boolean |
isOperationAllowed(ObjectName pName,
String pOperation)
Check whether execution of an operation is allowed
|
boolean |
isOriginAllowed(String pOrigin,
boolean pOnlyWhenStrictCheckingIsEnabled)
Check whether cross browser access via CORS is allowed.
|
boolean |
isRemoteAccessAllowed(String... pHostOrAddress)
Check whether access from the connected client is allowed.
|
boolean |
isTypeAllowed(RequestType pType)
Check whether the provided command type is allowed in principal
|
boolean isHttpMethodAllowed(HttpMethod pMethod)
pMethod
- method to checkboolean isTypeAllowed(RequestType pType)
pType
- type to checkboolean isAttributeReadAllowed(ObjectName pName, String pAttribute)
pName
- MBean namepAttribute
- attribute to checkboolean isAttributeWriteAllowed(ObjectName pName, String pAttribute)
pName
- MBean namepAttribute
- attribute to checkboolean isOperationAllowed(ObjectName pName, String pOperation)
pName
- MBean namepOperation
- attribute to checkboolean isRemoteAccessAllowed(String... pHostOrAddress)
pHostOrAddress
- one or more host or address names.boolean isOriginAllowed(String pOrigin, boolean pOnlyWhenStrictCheckingIsEnabled)
pOrigin
- the "Origin:" header provided within the requestpOnlyWhenStrictCheckingIsEnabled
- whether by-pass check when strict checking is disabledCopyright © 2019. All rights reserved.