Top Fields Constructors Methods
org.postgresql.gss

public Class MakeGSS

extends Object
Class Inheritance
Static Imports
org.postgresql.util.internal.Nullness.castNonNull

Field Summary

Modifier and TypeField and Description
private static final @Nullable MethodHandle
private static final Logger
private static final @Nullable MethodHandle
private static final @Nullable MethodHandle
private static final @Nullable MethodHandle
private static final @Nullable MethodHandle

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
authenticate(boolean encrypted, PGStream pgStream, String host, String user, @Nullable char[] password, @Nullable String jaasApplicationName, @Nullable String kerberosServerName, boolean useSpnego, boolean jaasLogin, boolean logServerErrorDetail)

private static @Nullable Subject

Returns:

current Subject or null
getCurrentSubject
()

Use Subject.current() in Java 18+, and Subject.getSubject(AccessController.getContext()) in Java before 18.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ACCESS_CONTROLLER_GET_CONTEXTback to summary
private static final @Nullable MethodHandle ACCESS_CONTROLLER_GET_CONTEXT
LOGGERback to summary
private static final Logger LOGGER
SUBJECT_CALL_ASback to summary
private static final @Nullable MethodHandle SUBJECT_CALL_AS
SUBJECT_CURRENTback to summary
private static final @Nullable MethodHandle SUBJECT_CURRENT
SUBJECT_DO_ASback to summary
private static final @Nullable MethodHandle SUBJECT_DO_AS
SUBJECT_GET_SUBJECTback to summary
private static final @Nullable MethodHandle SUBJECT_GET_SUBJECT

Constructor Detail

MakeGSSback to summary
public MakeGSS()

Method Detail

authenticateback to summary
public static void authenticate(boolean encrypted, PGStream pgStream, String host, String user, @Nullable char[] password, @Nullable String jaasApplicationName, @Nullable String kerberosServerName, boolean useSpnego, boolean jaasLogin, boolean logServerErrorDetail) throws IOException, PSQLException
getCurrentSubjectback to summary
private static @Nullable Subject getCurrentSubject()

Use Subject.current() in Java 18+, and Subject.getSubject(AccessController.getContext()) in Java before 18.

Returns:@Nullable Subject

current Subject or null

Annotations
@SuppressWarnings:deprecation