| 程序包 | 说明 |
|---|---|
| org.jetlinks.core | |
| org.jetlinks.core.defaults | |
| org.jetlinks.core.device |
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Mono<AuthenticationResponse> |
ProtocolSupport.authenticate(AuthenticationRequest request,
DeviceOperator deviceOperation)
进行设备认证
|
default reactor.core.publisher.Mono<AuthenticationResponse> |
ProtocolSupport.authenticate(AuthenticationRequest request,
DeviceRegistry registry)
对不明确的设备进行认证
|
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Mono<AuthenticationResponse> |
DefaultDeviceOperator.authenticate(AuthenticationRequest request) |
reactor.core.publisher.Mono<AuthenticationResponse> |
Authenticator.authenticate(AuthenticationRequest request,
DeviceOperator device)
对指定对设备进行认证
|
reactor.core.publisher.Mono<AuthenticationResponse> |
CompositeProtocolSupport.authenticate(AuthenticationRequest request,
DeviceOperator deviceOperation) |
default reactor.core.publisher.Mono<AuthenticationResponse> |
Authenticator.authenticate(AuthenticationRequest request,
DeviceRegistry registry)
在网络连接建立的时候,可能无法获取设备的标识(如:http,websocket等),则会调用此方法来进行认证.
|
reactor.core.publisher.Mono<AuthenticationResponse> |
CompositeProtocolSupport.authenticate(AuthenticationRequest request,
DeviceRegistry registry) |
| 限定符和类型 | 方法和说明 |
|---|---|
static AuthenticationResponse |
AuthenticationResponse.error(int code,
String message) |
static AuthenticationResponse |
AuthenticationResponse.success() |
static AuthenticationResponse |
AuthenticationResponse.success(String deviceId) |
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Mono<AuthenticationResponse> |
DeviceOperator.authenticate(AuthenticationRequest request)
进行授权
|
Copyright © 2019–2022. All rights reserved.