Creates an instance of AbstractSession.
Cached HTTPS agent for certificate-based authentication
Logging object
Regex to extract basic from base64 encoded auth
Basic auth prefix
Bearer auth prefix
Default base path. Our empty string means that we do not use an API mediation layer base path at the beginning of every resource URL.
Default https port 443
Default http port 80
Default https port
Default protocol
Default reject unauthorized
Default SSL method
Default strict ssl setting
Default session type
Obtain session info and defaults
Get the cached HTTPS agent.
The cached HTTPS agent, or undefined if not cached.
Set the cached HTTPS agent.
The HTTPS agent to cache.
The cached HTTPS agent, or undefined if not cached.
Detect if this session will connect to APIML.
This detection is not foolproof. It is more like very, very likely APIML. Since this function is used for URI encoding choices, we will increase the encoding for APIML and minimize the encoding for z/OSMF. This should position Zowe for anticipated future restrictions on encoded characters in URIs. Previously, a high level of encoding was used for all connections. So, if some configuration is misinterpreted as APIML, it will get similar encoding as before these changes, so we do not expect any breaking changes as a result.
In the future we may want to replace this implementation with a more certain confirmation that we are connecting to APIML.
Method to parse the requested token type
cookie object from http(s) response
Create base 64 encoded representation of user and password
plain text user
plain text password
Obtain password from a base 64 credential
base 64 encoded credentials
Obtain user name from a base 64 credential
base 64 encoded credentials
Generated using TypeDoc
The API session object, serves as the base for sessions and contains the fields that are required by most API calls (hostname, port, credentials, etc).