public class MakeGSS
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.invoke.MethodHandle |
ACCESS_CONTROLLER_GET_CONTEXT |
private static java.util.logging.Logger |
LOGGER |
private static java.lang.invoke.MethodHandle |
SUBJECT_CALL_AS |
private static java.lang.invoke.MethodHandle |
SUBJECT_CURRENT |
private static java.lang.invoke.MethodHandle |
SUBJECT_DO_AS |
private static java.lang.invoke.MethodHandle |
SUBJECT_GET_SUBJECT |
| Constructor and Description |
|---|
MakeGSS() |
| Modifier and Type | Method and Description |
|---|---|
static void |
authenticate(boolean encrypted,
PGStream pgStream,
java.lang.String host,
java.lang.String user,
char[] password,
java.lang.String jaasApplicationName,
java.lang.String kerberosServerName,
boolean useSpnego,
boolean jaasLogin,
boolean logServerErrorDetail) |
private static javax.security.auth.Subject |
getCurrentSubject()
Use
Subject.current() in Java 18+, and
Subject.getSubject(AccessController.getContext()) in Java before 18. |
private static final java.util.logging.Logger LOGGER
private static final java.lang.invoke.MethodHandle SUBJECT_CURRENT
private static final java.lang.invoke.MethodHandle ACCESS_CONTROLLER_GET_CONTEXT
private static final java.lang.invoke.MethodHandle SUBJECT_GET_SUBJECT
private static final java.lang.invoke.MethodHandle SUBJECT_DO_AS
private static final java.lang.invoke.MethodHandle SUBJECT_CALL_AS
private static javax.security.auth.Subject getCurrentSubject()
Subject.current() in Java 18+, and
Subject.getSubject(AccessController.getContext()) in Java before 18.public static void authenticate(boolean encrypted,
PGStream pgStream,
java.lang.String host,
java.lang.String user,
char[] password,
java.lang.String jaasApplicationName,
java.lang.String kerberosServerName,
boolean useSpnego,
boolean jaasLogin,
boolean logServerErrorDetail)
throws java.io.IOException,
PSQLException
java.io.IOExceptionPSQLException