public class ProtectedResource extends Object implements Handler
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_CALLED_HEADER
Response header name to signify that the resource has been called.
|
Constructor and Description |
---|
ProtectedResource() |
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
handle(Context context,
Request request)
Sets a header, "RESOURCE_CALLED:true" on the response to signify that it has been called and write a JSON
string to the response containing the principal and context from the request attributes.
|
public static final String RESOURCE_CALLED_HEADER
public Promise<Response,NeverThrowsException> handle(Context context, Request request)
Copyright © 2025 Open Identity Platform Community. All rights reserved.