Constructs a TokenAuthenticationInfo.
Authentication token. This should be acquired from the DOIP service using whatever method is provided by that service.
OptionalclientId: stringOptional clientId to send in requests using this token
OptionalasUserId: stringIf present, instructs the DOIP service to perform operations as this user
OptionalclientOptional Client ID or username for this token.
Authentication token. This should be acquired from the DOIP service using whatever method is provided by that service.
OptionalasIf present, operations will be preformed as this user.
Returns the clientId property to be used in DOIP requests made with this AuthenticationInfo.
Returns the authentication token.
Returns (async) the authentication property to be used in DOIP requests made with this AuthenticationInfo.
Used for token-based authentication.
Example