AbacSupportpublic class ProviderRequest extends java.lang.Object implements AbacSupport
getSubject() - if user is authenticatedgetService() - if service is authenticatedgetEnv() - path, method etc.getObject() - target resource, if provided by usergetContext() - current subjects and information about security context of this
requestgetEndpointConfig() - annotations, endpoint specific configuration, custom objects,
custom atttributesAbacSupport.BasicAttributes| Modifier and Type | Method | Description |
|---|---|---|
java.util.Collection<java.lang.String> |
getAttributeNames() |
A collection of all property names in this container.
|
java.lang.Object |
getAttributeRaw(java.lang.String key) |
Return the actual property value or null if not present.
|
SecurityContext |
getContext() |
|
EndpointConfig |
getEndpointConfig() |
|
SecurityEnvironment |
getEnv() |
|
java.util.Optional<java.lang.Object> |
getObject() |
|
java.util.Optional<Entity> |
getRequestEntity() |
Access request message entity.
|
java.util.Optional<Entity> |
getResponseEntity() |
Access response message entity.
|
java.util.Optional<Subject> |
getService() |
|
java.util.Optional<Subject> |
getSubject() |
|
static java.util.Optional<java.lang.Object> |
getValue(java.lang.Object object,
java.lang.String key) |
Get a value of a property from an object.
|
getAttributepublic static java.util.Optional<java.lang.Object> getValue(java.lang.Object object,
java.lang.String key)
AbacSupport the value is obtained through AbacSupport.getAttribute(String), if not,
the value is obtained by reflection from a public field or a public getter method.
The method name may be (for attribute called for example "audit"):
object - object to get attribute fromkey - key of the attributepublic EndpointConfig getEndpointConfig()
public SecurityContext getContext()
public java.util.Optional<Subject> getSubject()
public java.util.Optional<Subject> getService()
public SecurityEnvironment getEnv()
public java.util.Optional<java.lang.Object> getObject()
public java.util.Optional<Entity> getRequestEntity()
public java.util.Optional<Entity> getResponseEntity()
public java.lang.Object getAttributeRaw(java.lang.String key)
AbacSupportgetAttributeRaw in interface AbacSupportkey - key (name) of the propertypublic java.util.Collection<java.lang.String> getAttributeNames()
AbacSupportgetAttributeNames in interface AbacSupportCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.