pub fn select_authentication_method(
    mutual_security_protocols: HashSet<SecurityDescriptor>,
    credential: &Credential
) -> Option<SecurityAuthenticator>
Expand description

Creates a security authenticator based on supported security protocols and credentials.

The authentication method is chosen based on the general strength of each mutually supported security protocol (the protocols supported by both the local and remote stations) and the compatibility of those protocols with the given credentials.

Returns None if no appropriate authentication method can be selected for the given protocols and credentials.