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:
Andrew Grieve 2015-03-02 20:37:33 -05:00
parent 035c3ad319
commit 1ad280db98

View File

@ -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();