public boolean getCredentialFlag() {
        return credentialFlag;
    }
Set app key index to be used when publishing messages.

@param appKeyIndex global application key index
mesh/src/main/java/no/nordicsemi/android/mesh/transport/PublicationSettings.java