public class ProviderRequest extends Object implements AbacSupport
subject() - if user is authenticatedservice() - if service is authenticatedenv() - path, method etc.getObject() - target resource, if provided by usersecurityContext() - current subjects and information about security context of this
requestendpointConfig() - annotations, endpoint specific configuration, custom objects,
custom atttributesAbacSupport.BasicAttributes| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
abacAttributeNames()
A collection of all property names in this container.
|
Object |
abacAttributeRaw(String key)
Return the actual property value or null if not present.
|
EndpointConfig |
endpointConfig()
Configuration of the invoked endpoint, such as annotations declared.
|
SecurityEnvironment |
env()
Environment of current request, such as the URI invoked, time to use for security decisions etc.
|
Optional<Object> |
getObject()
The object of this request.
|
static Optional<Object> |
getValue(Object object,
String key)
Get a value of a property from an object.
|
Optional<Entity> |
requestEntity()
Deprecated.
entity access is going to be removed from security
|
Optional<Entity> |
responseEntity()
Deprecated.
entity access is going to be removed from security
|
SecurityContext |
securityContext()
Security context associated with current request.
|
Optional<Subject> |
service()
Current service subject, if already authenticated.
|
Optional<Subject> |
subject()
Current user subject, if already authenticated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabacAttributepublic static Optional<Object> getValue(Object object, String key)
AbacSupport the value is obtained through AbacSupport.abacAttribute(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 endpointConfig()
public SecurityContext securityContext()
public Optional<Subject> subject()
public Optional<Subject> service()
public SecurityEnvironment env()
public Optional<Object> getObject()
@Deprecated public Optional<Entity> requestEntity()
@Deprecated public Optional<Entity> responseEntity()
public Object abacAttributeRaw(String key)
AbacSupportabacAttributeRaw in interface AbacSupportkey - key (name) of the propertypublic Collection<String> abacAttributeNames()
AbacSupportabacAttributeNames in interface AbacSupportCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.