Top Fields Constructors Methods
org.postgresql.gss

pack-priv Class GssAction

extends Object
implements PrivilegedAction<@Nullable Exception>, Callable<@Nullable Exception>
Class Inheritance
All Implemented Interfaces
java.util.concurrent.Callable, java.security.PrivilegedAction
Imports
org.postgresql.core.PGStream, org.postgresql.util.GT, .PSQLException, .PSQLState, .ServerErrorMessage, org.checkerframework.checker.nullness.qual.Nullable, org.ietf.jgss.GSSContext, .GSSCredential, .GSSException, .GSSManager, .GSSName, .Oid, java.io.IOException, java.security.Principal, .PrivilegedAction, java.util.Iterator, .Set, java.util.concurrent.Callable, java.util.logging.Level, .Logger, javax.security.auth.Subject

Field Summary

Modifier and TypeField and Description
private final String
private final String
private static final Logger
private final boolean
private final PGStream
private final @Nullable Subject
private final String
private final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
GssAction(PGStream pgStream, @Nullable Subject subject, String host, String user, String kerberosServerName, boolean useSpnego, boolean logServerErrorDetail)

Method Summary

Modifier and TypeMethod and Description
public @Nullable Exception
call()

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

private static boolean
public @Nullable Exception
run()

Implements java.security.PrivilegedAction.run.

Performs the computation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hostback to summary
private final String host
kerberosServerNameback to summary
private final String kerberosServerName
LOGGERback to summary
private static final Logger LOGGER
logServerErrorDetailback to summary
private final boolean logServerErrorDetail
pgStreamback to summary
private final PGStream pgStream
subjectback to summary
private final @Nullable Subject subject
userback to summary
private final String user
useSpnegoback to summary
private final boolean useSpnego

Constructor Detail

GssActionback to summary
pack-priv GssAction(PGStream pgStream, @Nullable Subject subject, String host, String user, String kerberosServerName, boolean useSpnego, boolean logServerErrorDetail)

Method Detail

callback to summary
public @Nullable Exception call() throws Exception

Implements java.util.concurrent.Callable.call.

Doc from java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Returns:@Nullable Exception

computed result

Annotations
@Override
Exceptions
Exception:
if unable to compute a result
hasSpnegoSupportback to summary
private static boolean hasSpnegoSupport(GSSManager manager) throws GSSException
runback to summary
public @Nullable Exception run()

Implements java.security.PrivilegedAction.run.

Doc from java.security.PrivilegedAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:@Nullable Exception

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedAction should document what (if anything) this value represents.

Annotations
@Override