mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Add an isSecretEstablished()
getter to CordovaBridge
Not being used, but might be of use to an Engine plugin or a Whitelist plugin.
This commit is contained in:
parent
035c3ad319
commit
1ad280db98
@ -107,6 +107,10 @@ public class CordovaBridge {
|
||||
expectedBridgeSecret = -1;
|
||||
}
|
||||
|
||||
public boolean isSecretEstablished() {
|
||||
return expectedBridgeSecret != -1;
|
||||
}
|
||||
|
||||
/** Called by cordova.js to initialize the bridge. */
|
||||
int generateBridgeSecret() {
|
||||
SecureRandom randGen = new SecureRandom();
|
||||
|
Loading…
Reference in New Issue
Block a user