Authorized classes are registered when creating the ByteBuddy proxies.
It should only be used when the Security Manager is enabled.
| Modifier and Type | Class and Description |
|---|---|
| private static class | HibernateMethodLookupDispatcher.SecurityManagerClassContextGetCallerStackAction
Deprecated
as a consequence of A privileged action that retrieves the caller stack from the security manager class context.
SecurityManager being deprecated.
|
| private static class | HibernateMethodLookupDispatcher.StackWalkerGetCallerStackAction
A privileged action that retrieves the caller stack using a stack walker. |
| Modifier and Type | Field and Description |
|---|---|
| private static Set | |
| private static final PrivilegedAction | |
| private static final int | MAX_STACK_FRAMES
The maximum number of stack frames to explore to find the caller frame. |
| private static final int | MIN_STACK_FRAMES
The minimum number of stack frames to drop before we can hope to find the caller frame. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Method | |
| private static Class | |
| public static Method | |
| public static Method | |
| pack-priv static void |
| authorizedClasses | back to summary |
|---|---|
| private static Set<String> authorizedClasses | |
| GET_CALLER_STACK_ACTION | back to summary |
|---|---|
| private static final PrivilegedAction<Class<?>[]> GET_CALLER_STACK_ACTION | |
| MAX_STACK_FRAMES | back to summary |
|---|---|
| private static final int MAX_STACK_FRAMES The maximum number of stack frames to explore to find the caller frame. Beyond that, we give up and throw an exception. | |
| MIN_STACK_FRAMES | back to summary |
|---|---|
| private static final int MIN_STACK_FRAMES The minimum number of stack frames to drop before we can hope to find the caller frame. | |
| HibernateMethodLookupDispatcher | back to summary |
|---|---|
| public HibernateMethodLookupDispatcher() | |
| doPrivilegedAction | back to summary |
|---|---|
| private static Method doPrivilegedAction(PrivilegedAction<Method> privilegedAction) | |
| getCallerClass | back to summary |
|---|---|
| private static Class | |
| getDeclaredMethod | back to summary |
|---|---|
| public static Method getDeclaredMethod(Class<?> type, String name, Class<?>[] parameters) | |
| getMethod | back to summary |
|---|---|
| public static Method getMethod(Class<?> type, String name, Class<?>[] parameters) | |
| registerAuthorizedClass | back to summary |
|---|---|
| pack-priv static void registerAuthorizedClass(String className) | |
Deprecated
as a consequence of SecurityManager being deprecated. See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Class |
| SecurityManagerClassContextGetCallerStackAction | back to summary |
|---|---|
| private SecurityManagerClassContextGetCallerStackAction() | |
| run | back to summary |
|---|---|
| public Class Implements java. Doc from java. Performs the computation. This method will be called by
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| private final Method | |
| private final Function | |
| private final Object | |
| private final Method |
| Access | Constructor and Description |
|---|---|
| pack-priv | StackWalkerGetCallerStackAction(Object stackWalker, Method stackWalkerWalkMethod, Method stackFrameGetDeclaringClass)
|
| Modifier and Type | Method and Description |
|---|---|
| public Class |
| stackFrameExtractFunction | back to summary |
|---|---|
private final Function<Stream<T>, Object> stackFrameExtractFunction
| |
| stackFrameGetDeclaringClass | back to summary |
|---|---|
| private final Method stackFrameGetDeclaringClass | |
| stackFrameGetDeclaringClassFunction | back to summary |
|---|---|
| private final Function<Object, Class<?>> stackFrameGetDeclaringClassFunction | |
| stackWalker | back to summary |
|---|---|
| private final Object stackWalker | |
| stackWalkerWalkMethod | back to summary |
|---|---|
| private final Method stackWalkerWalkMethod | |
| StackWalkerGetCallerStackAction | back to summary |
|---|---|
| pack-priv StackWalkerGetCallerStackAction(Object stackWalker, Method stackWalkerWalkMethod, Method stackFrameGetDeclaringClass) | |
| run | back to summary |
|---|---|
| public Class Implements java. Doc from java. Performs the computation. This method will be called by
| |