
org.postgresql.sspi.SSPIClient.class Maven / Gradle / Ivy
The newest version!
???? 4$
K ? H ?
? ? H ? H ? H ?
? ? H ? ? ? ?
? ? ?
? ? ? ?
? ? ?
? ? ? ?
? ?
? ?
? ? ? ? ? ? ?
? ? ? ? ? ?
? ?
? ? H ? ? ? ? ?
H ? H ? ? ?
) ? H ?
) ?
) ?
) ?
) ? ?
) ?
H ? ? ? ? ? ? ?
6 ? ?
? ? ? ?
; ?
) ? ? ?
? ?
? ?
? ?
? ?
) ? ? ? ? ?
? ?
? ? ? ? SSPI_DEFAULT_SPN_SERVICE_CLASS Ljava/lang/String; LOGGER Ljava/util/logging/Logger; pgStream Lorg/postgresql/core/PGStream; spnServiceClass enableNegotiate Z clientCredentials /Lwaffle/windows/auth/IWindowsCredentialsHandle; sspiContext 5Lwaffle/windows/auth/impl/WindowsSecurityContextImpl;
targetName 4(Lorg/postgresql/core/PGStream;Ljava/lang/String;Z)V Code LineNumberTable LocalVariableTable this Lorg/postgresql/sspi/SSPIClient;
StackMapTable ? ? ? isSSPISupported ()Z ex Ljava/lang/NoClassDefFoundError; "Ljava/lang/ClassNotFoundException; ? ? makeSPN ()Ljava/lang/String; Lcom/sun/jna/LastErrorException; hs Lorg/postgresql/util/HostSpec; ? ?
Exceptions startSSPI ()V +Lcom/sun/jna/platform/win32/Win32Exception; securityPackage ? ? ? continueSSPI (I)V msgLength I
receivedToken [B
continueToken
SecBufferDesc InnerClasses /Lcom/sun/jna/platform/win32/Sspi$SecBufferDesc;
responseToken ? ? sendSSPIResponse ([B)V outToken dispose
SourceFile SSPIClient.java [ v Q R ? ? g M N S N T U ? ? g O P ? ? ? $SSPI not supported: non-Windows host ? ? ? 3waffle.windows.auth.impl.WindowsSecurityContextImpl ? ? ? java/lang/NoClassDefFoundError +SSPI unavailable (no Waffle/JNA libraries?) ? ? java/lang/ClassNotFoundException ? ? ? ? ? ? ? ? n ? ? ? com/sun/jna/LastErrorException !org/postgresql/util/PSQLException "SSPI setup failed to determine SPN [ negotiate kerberos ? :Beginning SSPI/Kerberos negotiation with SSPI package: {0} ? V W
v )com/sun/jna/platform/win32/Win32Exception 3Could not obtain local Windows credentials for SSPI m n Z N SSPI target name: {0} 3waffle/windows/auth/impl/WindowsSecurityContextImpl X Y
*Could not initialize SSPI security context ? ? #Sent first SSPI negotiation message NSSPI cannot be used, Waffle or its dependencies are missing from the classpath java/lang/IllegalStateException 8Cannot continue SSPI authentication that we didn't begin [
Continuing SSPI negotiation -com/sun/jna/platform/win32/Sspi$SecBufferDesc com/sun/jna/platform/win32/Sspi [ *Sent SSPI negotiation continuation message /SSPI authentication complete, no reply required } } ? v ? v POSTGRES org/postgresql/sspi/SSPIClient n!" java/lang/Object org/postgresql/sspi/ISSPIClient org/postgresql/core/PGStream java/lang/String org/postgresql/util/HostSpec java/sql/SQLException java/io/IOException isEmpty com/sun/jna/Platform isWindows java/util/logging/Level WARNING Ljava/util/logging/Level; java/util/logging/Logger log .(Ljava/util/logging/Level;Ljava/lang/String;)V java/lang/Class forName %(Ljava/lang/String;)Ljava/lang/Class; C(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V getHostSpec ()Lorg/postgresql/util/HostSpec; "org/postgresql/sspi/NTDSAPIWrapper instance $Lorg/postgresql/sspi/NTDSAPIWrapper; getHost getPort ()I DsMakeSpn ](Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;SLjava/lang/String;)Ljava/lang/String; org/postgresql/util/PSQLState CONNECTION_UNABLE_TO_CONNECT Lorg/postgresql/util/PSQLState; I(Ljava/lang/String;Lorg/postgresql/util/PSQLState;Ljava/lang/Throwable;)V FINEST @(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V 5waffle/windows/auth/impl/WindowsCredentialsHandleImpl
getCurrent C(Ljava/lang/String;)Lwaffle/windows/auth/IWindowsCredentialsHandle; -waffle/windows/auth/IWindowsCredentialsHandle
initialize setPrincipalName (Ljava/lang/String;)V setCredentialsHandle 2(Lwaffle/windows/auth/IWindowsCredentialsHandle;)V setSecurityPackage#
CtxtHandle p(Lcom/sun/jna/platform/win32/Sspi$CtxtHandle;Lcom/sun/jna/platform/win32/Sspi$SecBufferDesc;Ljava/lang/String;)V getToken ()[B NOT_IMPLEMENTED receive (I)[B (I[B)V getHandle .()Lcom/sun/jna/platform/win32/Sspi$CtxtHandle; sendChar sendInteger4 send flush getName getLogger .(Ljava/lang/String;)Ljava/util/logging/Logger; *com/sun/jna/platform/win32/Sspi$CtxtHandle ! H K L M N O P Q R S N T U V W X Y Z N [ \ ] ? )*? *+? ,? ,? ? M,? ? M*,? *? ? ^ &