MCPcopy Index your code
hub / github.com/cedar-policy/cedar-java / parsePoliciesJni

Function parsePoliciesJni

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

Source from the content-addressed store, hash-verified

647
648#[jni_fn("com.cedarpolicy.model.policy.PolicySet")]
649pub fn parsePoliciesJni<'a>(mut env: JNIEnv<'a>, _: JClass, policies_jstr: JString<'a>) -> jvalue {
650 match parse_policies_internal(&mut env, policies_jstr) {
651 Err(e) => jni_failed(&mut env, e.as_ref()),
652 Ok(policies_set) => policies_set.as_jni(),
653 }
654}
655
656fn parse_policies_internal<'a>(
657 env: &mut JNIEnv<'a>,

Callers

nothing calls this directly

Calls 4

parse_policies_internalFunction · 0.85
jni_failedFunction · 0.85
as_jniMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected