public class SimpleDemoHomeKitAuthInfo extends Object implements XIMCloudHomeKitAuthInfo
| 构造器和说明 |
|---|
SimpleDemoHomeKitAuthInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createUser(String username,
byte[] publicKey) |
String |
getMac()
A unique MAC address to be advertised with the HomeKit information.
|
String |
getPin()
A pin code used for pairing the device.
|
byte[] |
getPrivateKey()
The private key used by the server during pairing and message encryption.
|
BigInteger |
getSalt()
The Salt that will be used when hashing the pin code to send to the client.
|
String |
getSetupId()
A setup Id used for pairing the device using QR Code.
|
List<HomeKitUserVo> |
getUserList() |
byte[] |
getUserPublicKey(String userName) |
boolean |
hasUser()
Called to check if a user has been created.
|
boolean |
hasUser(String userName) |
void |
removeUser(String userName) |
public String getPin()
getPin 在接口中 io.github.hapjava.server.HomekitAuthInfopublic String getMac()
HomekitServer.generateMac().getMac 在接口中 io.github.hapjava.server.HomekitAuthInfopublic BigInteger getSalt()
HomekitServer.generateSalt().getSalt 在接口中 io.github.hapjava.server.HomekitAuthInfopublic byte[] getPrivateKey()
HomekitServer.generateKey()getPrivateKey 在接口中 io.github.hapjava.server.HomekitAuthInfopublic String getSetupId()
getSetupId 在接口中 io.github.hapjava.server.HomekitAuthInfopublic void createUser(String username, byte[] publicKey)
createUser 在接口中 io.github.hapjava.server.HomekitAuthInfopublic void removeUser(String userName)
removeUser 在接口中 io.github.hapjava.server.HomekitAuthInfopublic byte[] getUserPublicKey(String userName)
getUserPublicKey 在接口中 io.github.hapjava.server.HomekitAuthInfopublic boolean hasUser()
hasUser 在接口中 io.github.hapjava.server.HomekitAuthInfopublic List<HomeKitUserVo> getUserList()
getUserList 在接口中 XIMCloudHomeKitAuthInfopublic boolean hasUser(String userName)
hasUser 在接口中 XIMCloudHomeKitAuthInfoCopyright © 2021. All rights reserved.