RoleCredentialsInterface
interface RoleCredentialsInterface (View source)
Role-credentials capability.
A single CNR-class capability segregated off the shared client contract:
composing a role login ("":"); flat platforms such as IBS/Moniker have no separator, so inheriting
the behaviour there would silently forge a garbage <uid><role> login rather
than reject it. Consumers holding the shared {\CNIC\AbstractClient} type narrow
via instanceof RoleCredentialsInterface before calling it. Mirrors the
{\CNIC\ExtendedResponseInterface} precedent on the Response side.
Methods
Set Role Credentials to be used for API communication
Details
RoleCredentialsInterface
setRoleCredentials(string $accountId = "", string $roleId = "", string $password = "")
Set Role Credentials to be used for API communication