QueryContextAttributes(Attribute)
Retrieves info about a security context
Attribute | Return type |
SECPKG_ATTR_ACCESS_TOKEN | PyHANDLE - returns a handle to the context's access token |
SECPKG_ATTR_AUTHORITY | PyUnicode - returns the name of the authenticating entity |
SECPKG_ATTR_CIPHER_STRENGTHS | (int,int) - returns the mininum and maximum cipher strengths allowed |
SECPKG_ATTR_CONNECTION_INFO | Returns a dictionary of connection info representing a SecPkgContext_ConnectionInfo struct |
SECPKG_ATTR_SESSION_KEY | string - returns the session key for the context |
SECPKG_ATTR_ISSUER_LIST_EX | (int, string) - Returns names of trusted certificate issuers |
SECPKG_ATTR_FLAGS | int - returns flags negotiated when context was established |
SECPKG_ATTR_PACKAGE_INFO | dict - returns dictionary containing info for context's security package |
SECPKG_ATTR_NEGOTIATION_INFO | (int, dict) - returns state of negotiation (SECPKG_NEGOTIATION_COMPLETE, SECPKG_NEGOTIATION_OPTIMISTIC,SECPKG_NEGOTIATION_IN_PROGRESS) and info for negotiated package |
SECPKG_ATTR_NAMES | PyUnicode - returns the user name for the context |
SECPKG_ATTR_SIZES | dict containing buffer sizes to be used with the context |
SECPKG_ATTR_PASSWORD_EXPIRY | PyDateTime - returns time password expires |
SECPKG_ATTR_LIFESPAN | (PyDateTime,PyDateTime) - returns time period during which context is valid |
SECPKG_ATTR_NATIVE_NAMES | (PyUnicode ,PyUnicode ) - returns client and server names |
SECPKG_ATTR_TARGET_INFORMATION | string - returns the target for the context |
SECPKG_ATTR_STREAM_SIZES | dict (see SecPkgContext_StreamSizes) containing message buffer sizes |
SECPKG_ATTR_KEY_INFO | dict (see SecPkgContext_KeyInfo) containing encryption key parameters |
SECPKG_ATTR_DCE_INFO | not supported yet SecPkgContext_DceInfo |
SECPKG_ATTR_LOCAL_CERT_CONTEXT | not supported yet PCCERT_CONTEXT |
SECPKG_ATTR_REMOTE_CERT_CONTEXT | not supported yet PCCERT_CONTEXT |
SECPKG_ATTR_ROOT_STORE | not supported yet HCERTCONTEXT |
SECPKG_ATTR_SUPPORTED_ALGS | not supported yet SecPkgCred_SupportedAlgs |
SECPKG_ATTR_SUPPORTED_PROTOCOLS | not supported yet SecPkgCred_SupportedProtocols |