landstrasse
Version:
Strongly typed WAMP Client for browsers
26 lines • 922 B
JavaScript
import AbstractAuthProvider from './AbstractAuthProvider';
/**
* TLS Client Certificate authentication provider.
*
* Providing an instance of this class means that the client thinks
* that it is already authenticated by presenting a TLS client cert on the
* transport level.
*/
class TLSAuthProvider extends AbstractAuthProvider {
get isTransportLevel() {
return true;
}
/**
* Creates a new instance of the TLS auth provider.
*
* @param authId - Username to login as. A certificate might permit logging
* in to several user names, so present one here.
* It might be changed by the server, so that's possibly only a 'hint'.
* (default: '')
*/
constructor(authId) {
super(authId !== null && authId !== void 0 ? authId : '', 'tls');
}
}
export default TLSAuthProvider;
//# sourceMappingURL=TLS.js.map