Package org.postgresql.gss
Class GssEncAction
- java.lang.Object
-
- org.postgresql.gss.GssEncAction
-
- All Implemented Interfaces:
java.security.PrivilegedAction<java.lang.Exception>
,java.util.concurrent.Callable<java.lang.Exception>
public class GssEncAction extends java.lang.Object implements java.security.PrivilegedAction<java.lang.Exception>, java.util.concurrent.Callable<java.lang.Exception>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
host
private java.lang.String
kerberosServerName
private static java.util.logging.Logger
LOGGER
private boolean
logServerErrorDetail
private PGStream
pgStream
private javax.security.auth.Subject
subject
private java.lang.String
user
private boolean
useSpnego
-
Constructor Summary
Constructors Constructor Description GssEncAction(PGStream pgStream, javax.security.auth.Subject subject, java.lang.String host, java.lang.String user, java.lang.String kerberosServerName, boolean useSpnego, boolean logServerErrorDetail)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Exception
call()
private static boolean
hasSpnegoSupport(org.ietf.jgss.GSSManager manager)
java.lang.Exception
run()
-
-
-
Field Detail
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
pgStream
private final PGStream pgStream
-
host
private final java.lang.String host
-
user
private final java.lang.String user
-
kerberosServerName
private final java.lang.String kerberosServerName
-
useSpnego
private final boolean useSpnego
-
subject
private final javax.security.auth.Subject subject
-
logServerErrorDetail
private final boolean logServerErrorDetail
-
-
Constructor Detail
-
GssEncAction
public GssEncAction(PGStream pgStream, javax.security.auth.Subject subject, java.lang.String host, java.lang.String user, java.lang.String kerberosServerName, boolean useSpnego, boolean logServerErrorDetail)
-
-
Method Detail
-
hasSpnegoSupport
private static boolean hasSpnegoSupport(org.ietf.jgss.GSSManager manager) throws org.ietf.jgss.GSSException
- Throws:
org.ietf.jgss.GSSException
-
run
public java.lang.Exception run()
- Specified by:
run
in interfacejava.security.PrivilegedAction<java.lang.Exception>
-
call
public java.lang.Exception call() throws java.lang.Exception
- Specified by:
call
in interfacejava.util.concurrent.Callable<java.lang.Exception>
- Throws:
java.lang.Exception
-
-