MethodHandles.Lookup object.
API Note
SecureLookupSupplier provided a way in older JDK releases to guard access to
a MethodHandles.Lookup object when running with a security manager set.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | GET_LOOKUP_PERMISSION_NAME
The name of a runtime permission required to successfully invoke the
|
| private final MethodHandles. |
| Access | Constructor and Description |
|---|---|
| public | SecureLookupSupplier(final MethodHandles.
the lookup to secure. Can not be null. lookupCreates a new secure lookup supplier for the given lookup. |
| Modifier and Type | Method and Description |
|---|---|
| public final MethodHandles. | Returns: the lookup secured by thisSecureLookupSupplier.Returns the lookup secured by this |
| protected final MethodHandles. | Returns: same as returned value ofgetLookup().Returns the lookup secured by this |
| GET_LOOKUP_PERMISSION_NAME | back to summary |
|---|---|
| public static final String GET_LOOKUP_PERMISSION_NAME The name of a runtime permission required to successfully invoke the
| |
| lookup | back to summary |
|---|---|
| private final MethodHandles. | |
| SecureLookupSupplier | back to summary |
|---|---|
| public SecureLookupSupplier(final MethodHandles. Creates a new secure lookup supplier for the given lookup.
| |
| getLookup | back to summary |
|---|---|
| public final MethodHandles. Returns the lookup secured by this
| |
| getLookupPrivileged | back to summary |
|---|---|
| protected final MethodHandles. Returns the lookup secured by this
| |