UNPKG

opennms

Version:

Client API for the OpenNMS network monitoring platform

28 lines (24 loc) 591 B
/** * Represents server authentication config. * @module OnmsAuthConfig */ export class OnmsAuthConfig { /** The password to authenticate with. */ public password: string; /** The username to connect as. */ public username: string; /** * Construct an auth configuration object. * @constructor */ constructor(username: string, password: string) { this.username = username; this.password = password; } /** * Create a new config object from this existing one. */ public clone() { return new OnmsAuthConfig(this.username, this.password); } }