PyCtxtHandle Object

Security context handle, as used with sspi functions

Comments

Create using win32security.PyCtxtHandleType(). The handle must be initialized by passing it to win32security::InitializeSecurityContext or win32security::AcceptSecurityContext

Methods

Detach
Disassociates object from handle and returns integer value of handle 

CompleteAuthToken
Completes the authentication token 

QueryContextAttributes
Retrieves info about a security context 

DeleteSecurityContext
Frees the security context and invalidates the handle 

QuerySecurityContextToken
Returns the access token for a security context 

MakeSignature
Generates a signature for a message 

VerifySignature
Verifies a signature created using PyCtxtHandle::MakeSignature 

EncryptMessage
Encrypts data with security context's session key 

DecryptMessage
Decrypts data encrypted by PyCtxtHandle::EncryptMessage 

ImpersonateSecurityContext
Causes a server to act in the security context of an authenticated client 

RevertSecurityContext
Stops impersonation of a client initiated by PyCtxtHandle::ImpersonateSecurityContext