public class RequestAttributes
Request attributes used in IAM condition evaluation. This field contains request attributes like request time and access levels associated with the request. To get the whole view of the attributes used in IAM condition evaluation, the user must also look into `AuditLog.authentication_info.resource_attributes`.
Inheritance
java.lang.Object >
RequestAttributes
Constructors
RequestAttributes()
public RequestAttributes()
Methods
getAuth()
The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request `Authorization` header or equivalent.
Returns
public Map<String,String> getHeaders()
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
Returns
getHost()
The HTTP request `Host` header value.
Returns
getID()
The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service.
Returns
getMethod()
public String getMethod()
The HTTP request method, such as `GET`, `POST`.
Returns
getPath()
Returns
getProtocol()
public String getProtocol()
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for details.
Returns
getQuery()
The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request. No decoding is performed.
Returns
getReason()
public String getReason()
A special parameter for request reason. It is used by security systems to associate auditing information with a request.
Returns
getScheme()
public String getScheme()
The HTTP URL scheme, such as `http` and `https`.
Returns
getSize()
The HTTP request size in bytes. If unknown, it must be -1.
Returns
getTime()
public OffsetDateTime getTime()
The timestamp when the `destination` service receives the first byte of the request.
Returns
setAuth(Auth value)
public void setAuth(Auth value)
Parameter
public void setHeaders(Map<String,String> value)
Parameter
setHost(String value)
public void setHost(String value)
Parameter
setID(String value)
public void setID(String value)
Parameter
setMethod(String value)
public void setMethod(String value)
Parameter
setPath(String value)
public void setPath(String value)
Parameter
setProtocol(String value)
public void setProtocol(String value)
Parameter
setQuery(String value)
public void setQuery(String value)
Parameter
setReason(String value)
public void setReason(String value)
Parameter
setScheme(String value)
public void setScheme(String value)
Parameter
setSize(Long value)
public void setSize(Long value)
Parameter
setTime(OffsetDateTime value)
public void setTime(OffsetDateTime value)
Parameter