update JNI to add new status code

This commit is contained in:
Grant Limberg 2022-03-04 14:28:25 -08:00
parent c341bf6d8c
commit a8dde7b89b
No known key found for this signature in database
GPG Key ID: 8F2F97D3BE8D7735
2 changed files with 8 additions and 0 deletions

View File

@ -117,6 +117,9 @@ jobject createVirtualNetworkStatus(JNIEnv *env, ZT_VirtualNetworkStatus status)
case ZT_NETWORK_STATUS_OK:
fieldName = "NETWORK_STATUS_OK";
break;
case ZT_NETWORK_STATUS_AUTHENTICATION_REQUIRED:
fieldName = "NETWORK_STATUS_AUTHENTICATION_REQUIRED";
break;
case ZT_NETWORK_STATUS_ACCESS_DENIED:
fieldName = "NETWORK_STATUS_ACCESS_DENIED";
break;

View File

@ -37,6 +37,11 @@ public enum VirtualNetworkStatus {
*/
NETWORK_STATUS_OK,
/**
* Netconf master said SSO auth required.
*/
NETWORK_STATUS_AUTHENTICATION_REQUIRED,
/**
* Netconf master told us 'nope'
*/