Class CedarlingAdapter
-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public class CedarlingAdapter implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description CedarlingAdapter()
-
Method Summary
Modifier and Type Method Description Cedarling
getCedarling()
void
loadFromJson(String bootstrapConfigJson)
void
loadFromFile(String path)
AuthorizeResult
authorize(Map<String, String> tokens, String action, JSONObject resource, JSONObject context)
AuthorizeResult
authorizeUnsigned(List<EntityData> principals, String action, JSONObject resource, JSONObject context)
String
getLogById(String id)
List<String>
getLogIds()
List<String>
getLogsByRequestId(String requestId)
List<String>
getLogsByRequestIdAndTag(String requestId, String tag)
List<String>
getLogsByTag(String tag)
List<String>
popLogs()
void
close()
-
-
Method Detail
-
getCedarling
Cedarling getCedarling()
-
loadFromJson
void loadFromJson(String bootstrapConfigJson)
-
loadFromFile
void loadFromFile(String path)
-
authorize
AuthorizeResult authorize(Map<String, String> tokens, String action, JSONObject resource, JSONObject context)
-
authorizeUnsigned
AuthorizeResult authorizeUnsigned(List<EntityData> principals, String action, JSONObject resource, JSONObject context)
-
getLogById
String getLogById(String id)
-
getLogsByRequestId
List<String> getLogsByRequestId(String requestId)
-
getLogsByRequestIdAndTag
List<String> getLogsByRequestIdAndTag(String requestId, String tag)
-
getLogsByTag
List<String> getLogsByTag(String tag)
-
close
void close()
-
-
-
-