start

fun start(port: Int = 0)

Starts the MockOAuth2Server on the localhost interface.

Parameters

port

The port the server should listen on, a value of 0 (which is the default) selects any available port.

Throws

Runtime error if unable to start server.


fun start(inetAddress: InetAddress, port: Int)

Starts the MockOAuth2Server on the given inetAddress IP address at the given port.

Parameters

port

The port that the server should listen on, a value of 0 selects any available port.

inetAddress

The IP address that the server should bind to.

Throws

Runtime error if unable to start server.