From 92e1f593dca9930484f17c2d67d4450dd31aa8d7 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Tue, 12 Oct 2021 10:47:41 -0500 Subject: [PATCH] Drop doc section on JACC --- .../userguide/chapters/events/Events.adoc | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/documentation/src/main/asciidoc/userguide/chapters/events/Events.adoc b/documentation/src/main/asciidoc/userguide/chapters/events/Events.adoc index cb86f6327f..e75efa87ea 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/events/Events.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/events/Events.adoc @@ -97,28 +97,6 @@ Or, the `Interceptor#onLoad()` is called by the `DefaultPreLoadEventListener`. When doing this, you should probably extend the default listeners because otherwise, you'd have to take care of all the low-level entity state transition logic. For example, if you replace the `DefaultPreLoadEventListener` with your own implementation, then, only if you call the `Interceptor#onLoad()` method explicitly, you can mix the custom load event listener with a custom Hibernate interceptor. -[[events-declarative-security]] -=== Hibernate declarative security - -Usually, declarative security in Hibernate applications is managed in a session facade layer. -Hibernate allows certain actions to be authorized via JACC and JAAS. -This is an optional functionality that is built on top of the event architecture. - -First, you must configure the appropriate event listeners, to enable the use of JACC authorization. -Again, see <> for the details. - -Below is an example of an appropriate `org.hibernate.integrator.spi.Integrator` implementation for this purpose. - -[[events-declarative-security-jacc-example]] -.JACC listener registration example -==== -[source, JAVA, indent=0] ----- -include::{sourcedir}/ListenerTest.java[tags=events-declarative-security-jacc-example] ----- -==== - -You must also decide how to configure your JACC provider. Consult your JACC provider documentation. [[events-jpa-callbacks]] === Jakarta Persistence Callbacks