Get the username of the currently authenticated user to the Enterprise Server. :return: Username, if authenticated. None, otherwise.
()
| 130 | |
| 131 | |
| 132 | def username() -> Optional[str]: |
| 133 | """ |
| 134 | Get the username of the currently authenticated user to the Enterprise Server. |
| 135 | |
| 136 | :return: Username, if authenticated. None, otherwise. |
| 137 | """ |
| 138 | value = core.BNGetEnterpriseServerUsername() |
| 139 | if value is None: |
| 140 | raise RuntimeError(last_error()) |
| 141 | return value |
| 142 | |
| 143 | |
| 144 | def token() -> Optional[str]: |
nothing calls this directly
no test coverage detected