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

Function parsePolicyJni

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

Source from the content-addressed store, hash-verified

594
595#[jni_fn("com.cedarpolicy.model.policy.Policy")]
596pub fn parsePolicyJni<'a>(mut env: JNIEnv<'a>, _: JClass, policy_jstr: JString<'a>) -> jvalue {
597 match parse_policy_internal(&mut env, policy_jstr) {
598 Err(e) => jni_failed(&mut env, e.as_ref()),
599 Ok(policy_text) => policy_text.as_jni(),
600 }
601}
602
603fn parse_policy_internal<'a>(
604 env: &mut JNIEnv<'a>,

Callers

nothing calls this directly

Calls 4

parse_policy_internalFunction · 0.85
jni_failedFunction · 0.85
as_jniMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected