Class SecurityManagerCompatibilityTest.UnsupportedOperations
java.lang.Object
org.apache.kafka.common.internals.SecurityManagerCompatibilityTest.UnsupportedOperations
- Enclosing class:
SecurityManagerCompatibilityTest
This is a class meant to stand-in for the AccessController, and Subject classes.
It simulates a scenario where all legacy methods throw UnsupportedOperationException, and only the modern
methods are functional.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class stands-in for the AccessControlContext in the mocked signatures below, because we can't have a compile-time dependency on the real class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TCopy of Subject#callAsstatic Subjectcurrent()Copy of Subject#currentstatic <T> voiddoAs(Subject ignored1, PrivilegedExceptionAction<T> ignored2) Copy of Subject#doAsstatic <T> voiddoPrivileged(PrivilegedAction<T> ignored) Copy of AccessController#doPrivilegedCopy of AccessController#getContextstatic voidCopy of Subject#getSubject
-
Constructor Details
-
UnsupportedOperations
public UnsupportedOperations()
-
-
Method Details
-
doPrivileged
Copy of AccessController#doPrivileged -
getContext
Copy of AccessController#getContext -
getSubject
public static void getSubject(SecurityManagerCompatibilityTest.UnsupportedOperations.DummyContext ignored) Copy of Subject#getSubject -
doAs
Copy of Subject#doAs -
current
Copy of Subject#current -
callAs
Copy of Subject#callAs- Throws:
CompletionException
-