Constructs a PasswordAuthenticationInfo.
Username to use for authentication
Password to use for authentication
Optional
asUserId: stringIf present, instructs the DOIP service to perform operations as this user
Optional
clientId: stringOptional clientId to send in requests using this token
Optional
asOptional
clientReturns (async) the authentication property to be used in DOIP requests made with this AuthenticationInfo.
Returns the clientId property to be used in DOIP requests made with this AuthenticationInfo.
Used for password-based authentication.
Example