Diffusion .NET Client Library
6.1.5
|
This feature provides a client session with the ability to change the associated principal. More...
Public Member Functions | |
void | ChangePrincipal (string principal, ICredentials credentials, IChangePrincipalCallback callback) |
Change the security principal associated with the current session. More... | |
void | ChangePrincipal< TC > (string principal, ICredentials credentials, TC context, IChangePrincipalContextCallback< TC > callback) |
Change the security principal associated with the current session. More... | |
Additional Inherited Members | |
Properties inherited from PushTechnology.ClientInterface.Client.Features.IFeature | |
ISession | Session [get] |
Returns the session that the feature is associated with. More... | |
This feature provides a client session with the ability to change the associated principal.
Access Control
There are no permissions requirements associated with this feature. The client provides credentials that authenticate the new principal.
void PushTechnology.ClientInterface.Client.Features.ISecurity.ChangePrincipal | ( | string | principal, |
ICredentials | credentials, | ||
IChangePrincipalCallback | callback | ||
) |
Change the security principal associated with the current session.
If authentication fails, the current principal will remain valid.
principal | The new principal name. |
credentials | The credentials authenticating the new principal. |
callback | Called on success or failure. |
void PushTechnology.ClientInterface.Client.Features.ISecurity.ChangePrincipal< TC > | ( | string | principal, |
ICredentials | credentials, | ||
TC | context, | ||
IChangePrincipalContextCallback< TC > | callback | ||
) |
Change the security principal associated with the current session.
TC | The context object type. |
principal | The new principal name. |
credentials | The credentials authenticating the new principal. |
context | The context passed to the callback. |
callback | Called on success or failure. |