Static Public Member Functions | |
_.Library.Integer | GetTelnetSSLSetting () |
Fetch Windows Telnet service SSL security setting. More... | |
_.Library.Integer | ImpersonateUser () |
Impersonates the user logged on by the LogonUser() method by calling the Windows ImpersonateLoggedOnUser() API with the security token saved by LogonUser(). More... | |
_.Library.Integer | LogoffUser () |
Closes the handle to the security token previously created by LogonUser() after reverting the process user context to the original user context. More... | |
_.Library.Integer | LogonUser (_.Library.String UserName, _.Library.String Domain, _.Library.String Password) |
Calls the Windows LogonUser() API and saves the security token for the current process. More... | |
_.Library.Integer | RevertToSelf () |
Reverts the process user context to the original logon context. More... | |
_.Library.String | SSLGetCipher () |
Returns the name of the SSL/TLS ciphersuite currently in use over the current device,. More... | |
_.Library.String | SSLGetCipherList (_.Library.Integer Direction, _.Library.Integer TLSMinVersion, _.Library.Integer TLSMaxVersion, _.Library.String CipherList) |
Returns a colon-delimited list of the names of all supported ciphersuites for TLSv1.2 and below. More... | |
_.Library.String | SSLGetLastError () |
Returns a description of the SSL/TLS error encountered, if any, during the most recent SSL/TLS. More... | |
_.Library.String | SSLGetPeerCertificate () |
Returns the X.509 certificate used. More... | |
_.Library.String | SSLGetPeerName (_.Library.String Entry) |
Returns a string representation of the X.500 distinguished name contained in the X.509 certificate used. More... | |
_.Library.String | SSLGetProtocol () |
Returns the name of the protocol currently in use over the current device,. More... | |
_.Library.String | SSLGetSession () |
Returns the SSL session parameters used. More... | |
_.Library.Integer | SSLPeekClientHello (_.Library.Integer Timeout) |
If the current device is a TCP device, peek into the TCP receive buffer. More... | |
_.Library.Integer | SetTelnetSSLSetting (_.Library.Integer Setting) |
Set the SSL requirement (Disabled/Enabled/Required) for inbound connections on the Service_Telnet service. More... | |
|
static |
Fetch Windows Telnet service SSL security setting.
Only applicable to instances on Windows platform. See also the SetTelnetSSLSetting method.
|
static |
Impersonates the user logged on by the LogonUser() method by calling the Windows ImpersonateLoggedOnUser() API with the security token saved by LogonUser().
ImpersonateUser() and RevertToSelf do not affect the user context contained in $USERNAME. Returns 0 on success, -1 if no security token has been saved, or the value returned by GetLastError() on failure.
|
static |
Closes the handle to the security token previously created by LogonUser() after reverting the process user context to the original user context.
Return value is 0.
|
static |
Calls the Windows LogonUser() API and saves the security token for the current process.
The user context is unaffected until the ImpersonateUser() method is called.
Return value is 0 on success or the error value retrieved from GetLastError() on failure.
This method is only available on Windows platforms.
It cannot be called from a local InterSystems IRIS Terminal process which displays TRM:pid (InstanceName) in the title bar because this process is already impersonating the logged in Windows user. An attempt to call LogonUser() from a local terminal process will result in a <FUNCTION> error.
|
static |
Reverts the process user context to the original logon context.
Returns 0.
|
static |
Returns the name of the SSL/TLS ciphersuite currently in use over the current device,.
if an SSL/TLS connection is currently established.
|
static |
Returns a colon-delimited list of the names of all supported ciphersuites for TLSv1.2 and below.
that are consistent with the input parameters.
Parameters:
Direction:
0 = client
1 = server<br>
TLSMinVersion:
4 = TLSv1.0
8 = TLSv1.1
16 = TLSv1.2
TLSMaxVersion:
4 = TLSv1.0
8 = TLSv1.1
16 = TLSv1.2
Note: TLSMaxVersion cannot be less than TLSMinVersion<br>
CipherList, a colon-delimited string constraining the return values, as specified in the OpenSSL Cipher man page
|
static |
Returns a description of the SSL/TLS error encountered, if any, during the most recent SSL/TLS.
operation over the current device.
|
static |
Returns the X.509 certificate used.
to verify the peer for the SSL/TLS session running over the current principal TCP device, in binary DER format. The certificate can be used as input to $System.Encryption.X509GetField() and the RSA* functions. To save the certificate to a file in PEM format:
Do file.Write("-----BEGIN CERTIFICATE-----"_$c(13,10))
Do file.Write($System.Encryption.Base64Encode(certificate))
Do file.Write($c(13,10)_"-----END CERTIFICATE-----"_$c(13,10))
|
static |
Returns a string representation of the X.500 distinguished name contained in the X.509 certificate used.
to verify the peer for the SSL/TLS session running over the current device. Called with no arguments it returns the entire name on one line. Called with an optional argument specifying a component name entry it retuns just that entry, if present. Legal values for the entry argument, and their legal short abreviations, are:
"commonName","CN"
"countryName","C"
"localityName","L"
"stateOrProvinceName","ST"
"organizationName","O"
"organizationalUnitName","OU"
"givenName","G"
"surname","S"
"initials","I"
"uniqueIdentifier","UID"
"serialNumber","SN"
"title","T"
"description","D"
Also supports the IA5 string components of the X.509 v3 subjectAltName extension. Additional legal values for the entry argument are:
"email"
"DNS"
"URI"
|
static |
Returns the name of the protocol currently in use over the current device,.
if an SSL/TLS connection is currently established.
|
static |
Returns the SSL session parameters used.
for the SSL/TLS session running over the current principal TCP device, in binary DER format. To save the session to a file in PEM format:
Do file.Write("-----BEGIN SSL SESSION PARAMETERS-----"_$c(13,10))
Do file.Write($System.Encryption.Base64Encode(session))
Do file.Write($c(13,10)_"-----END SSL SESSION PARAMETERS-----"_$c(13,10))
|
static |
If the current device is a TCP device, peek into the TCP receive buffer.
Returns 1 if it contains an SSLv3 or TLSv1 Client Hello message, or an SSLv2 Client Hello message requesting SSLv3 or later. Otherwise returns 0. Parameter:
Timeout, time to wait for data, in seconds
|
static |
Set the SSL requirement (Disabled/Enabled/Required) for inbound connections on the Service_Telnet service.
The default value is 1 (Enabled) if a TELNET/SSL configuration exists is enabled. The default value is 0 (Disabled) of no TELNET/SSL configuration exists or is enabled. This method can be called from SYSTEM^ZSTART to establish the setting for an instance at startup. This setting is only applicable on the Windows platform. Valid inputs are:
Returns previous setting.