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 CedarlinggetCedarling()voidloadFromJson(String bootstrapConfigJson)voidloadFromFile(String path)AuthorizeResultauthorize(Map<String, String> tokens, String action, JSONObject resource, JSONObject context)AuthorizeResultauthorizeUnsigned(List<EntityData> principals, String action, JSONObject resource, JSONObject context)StringgetLogById(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()voidclose()-
-
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()
-
-
-
-