forked from github/cordova-android
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;
|
expectedBridgeSecret = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isSecretEstablished() {
|
||||||
|
return expectedBridgeSecret != -1;
|
||||||
|
}
|
||||||
|
|
||||||
/** Called by cordova.js to initialize the bridge. */
|
/** Called by cordova.js to initialize the bridge. */
|
||||||
int generateBridgeSecret() {
|
int generateBridgeSecret() {
|
||||||
SecureRandom randGen = new SecureRandom();
|
SecureRandom randGen = new SecureRandom();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user