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

Function getPolicyAnnotationsJni

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

Source from the content-addressed store, hash-verified

718
719#[jni_fn("com.cedarpolicy.model.policy.Policy")]
720pub fn getPolicyAnnotationsJni<'a>(
721 mut env: JNIEnv<'a>,
722 _: JClass,
723 policy_jstr: JString<'a>,
724) -> jvalue {
725 match get_policy_annotations_internal(&mut env, policy_jstr) {
726 Err(e) => jni_failed(&mut env, e.as_ref()),
727 Ok(annotations) => annotations.as_jni(),
728 }
729}
730
731pub fn get_policy_annotations_internal<'a>(
732 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