mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
Unify scope
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
fc7c24b610
commit
fd6caadc3f
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ public class PushUtils {
|
|||
|
||||
private static ArbitraryDataProvider arbitraryDataProvider;
|
||||
|
||||
private static String generateSHA512Hash(String pushToken) {
|
||||
public static String generateSHA512Hash(String pushToken) {
|
||||
MessageDigest messageDigest = null;
|
||||
try {
|
||||
messageDigest = MessageDigest.getInstance("SHA-512");
|
||||
|
@ -88,7 +88,7 @@ public class PushUtils {
|
|||
return "";
|
||||
}
|
||||
|
||||
private static String bytesToHex(byte[] bytes) {
|
||||
public static String bytesToHex(byte[] bytes) {
|
||||
StringBuilder result = new StringBuilder();
|
||||
for (byte individualByte : bytes) {
|
||||
result.append(Integer.toString((individualByte & 0xff) + 0x100, 16)
|
||||
|
|
Loading…
Reference in a new issue