This implementation of ConnectionSecurityCallback uses the middleware's built-in security framework for client verification.

C# |
public sealed class DefaultSecurityCallback : ConnectionSecurityCallback

All Members | Constructors | Methods | |||
Icon | Member | Description |
---|---|---|
![]() | DefaultSecurityCallback(String, String) | Initializes a new instance of the DefaultSecurityCallback class |
![]() | OnGetAuthname()()()() | Retrieves and returns the authorization domain that is used to validate the client to the middleware. Invoked when an authorization domain is required while establishing a connection. |
![]() | OnGetPassword()()()() | Retrieves and returns the password that is used to validate the client to the middleware. Invoked when a password is required while establishing a connection. |
![]() | OnGetTtl()()()() | Retrieves and returns the time to live that is used to validate the client to the middleware. Invoked when a time to live value is required while establishing a connection. |
![]() | OnGetUsername()()()() | Retrieves and returns the username that is used to validate the client to the middleware. Invoked when user authentication is required while establishing a connection. |

To use custom security framework, implement the ConnectionSecurityCallback interface.
NOTE: If any of the methods of this class are called after the Main(...) method exits, the client or service process may behave in an undefined manner (for example, hang or terminate abnormally).

Object | |
![]() | DefaultSecurityCallback |

[ConnectionSecurityCallback]