WIP make part of keyAgreement public, so it can be used for shard return

This commit is contained in:
ameba23
2021-03-25 09:03:41 +01:00
parent 265d1da566
commit 995a053241
7 changed files with 548 additions and 12 deletions

View File

@@ -0,0 +1,35 @@
package org.briarproject.briar.api.keyagreement;
public class KeyAgreementUtils {
public enum BluetoothDecision {
/**
* We haven't asked the user about Bluetooth discoverability.
*/
UNKNOWN,
/**
* The device doesn't have a Bluetooth adapter.
*/
NO_ADAPTER,
/**
* We're waiting for the user to accept or refuse discoverability.
*/
WAITING,
/**
* The user has accepted discoverability.
*/
ACCEPTED,
/**
* The user has refused discoverability.
*/
REFUSED
}
public enum Permission {
UNKNOWN, GRANTED, SHOW_RATIONALE, PERMANENTLY_DENIED
}
}