MCPcopy Create free account
hub / github.com/cedar-policy/cedar-java / policySetToJson

Function policySetToJson

CedarJavaFFI/src/interface.rs:623–628  ·  view source on GitHub ↗
(mut env: JNIEnv<'a>, _: JClass, policies_jstr: JString<'a>)

Source from the content-addressed store, hash-verified

621
622#[jni_fn("com.cedarpolicy.model.policy.PolicySet")]
623pub fn policySetToJson<'a>(mut env: JNIEnv<'a>, _: JClass, policies_jstr: JString<'a>) -> jvalue {
624 match policy_set_to_json_internal(&mut env, policies_jstr) {
625 Err(e) => jni_failed(&mut env, e.as_ref()),
626 Ok(policies_set) => policies_set.as_jni(),
627 }
628}
629
630fn policy_set_to_json_internal<'a>(
631 env: &mut JNIEnv<'a>,

Callers

nothing calls this directly

Calls 4

jni_failedFunction · 0.85
as_jniMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected