Constructs a PasswordAuthenticationInfo.
Username to use for authentication
Password to use for authentication
OptionalasUserId: stringIf present, instructs the DOIP service to perform operations as this user
OptionalclientId: stringOptional clientId to send in requests using this token
OptionalasOptionalclientReturns (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