Class HAPSetupCodeUtils
- java.lang.Object
-
- io.github.hapjava.server.impl.crypto.HAPSetupCodeUtils
-
public class HAPSetupCodeUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description HAPSetupCodeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgenerateSetupId()static StringgenerateSHA512Hash(String value)generate SHA52 Hash for given string.static StringgetSetupURI(String pin, String setupId, int category)generate Setup URI which can be used fo QR Code generation.static StringrandomAlphaNumeric(int count)
-
-
-
Method Detail
-
randomAlphaNumeric
public static String randomAlphaNumeric(int count)
-
generateSetupId
public static String generateSetupId()
-
generateSHA512Hash
public static String generateSHA512Hash(String value)
generate SHA52 Hash for given string. The hash is used for mDNS advertisement.- Parameters:
value- value- Returns:
- hash
-
-