メインコンテンツ

findAuthentication

Find OPC UA servers supporting specified user authentication type

    Description

    matchingServers = findAuthentication(serverInfo,userTokenType) searches among the specified serverInfo objects and returns only those server info objects whose corresponding OPC UA servers support the authentication type specified by userTokenType.

    example

    Examples

    collapse all

    Find all servers from the local host that support Username authentication.

    localServers = opcuaserverinfo('localhost');
    userServers = findAuthentication(localServers,'Username')
    userServers =
    
    1×2 OPC UA ServerInfo array:
        index      Description       Hostname Port  Best Message Security Best Channel Security          User Tokens            
        ----- --------------------- --------- ----- --------------------- --------------------- ----------------------------------
          1   SimulationServer0x341 localhost 4841  Sign                  Aes128_Sha256_RsaOaep Anonymous | Username
          2   SimulationServer0x462 localhost 53530 SignAndEncrypt        Aes256_Sha256_RsaPss  Anonymous | Username | Certificate

    Input Arguments

    collapse all

    Server information, specified as an array of opc.ua.ServerInfo objects.

    User authentication types, specified as a string or character vector. The user authentication types are: Anonymous, Username, and Certificate. For more information, see User Authentication.

    Output Arguments

    collapse all

    List of matching servers, returned as an array of ServerInfo objects.

    Version History

    Introduced in R2015b

    See Also

    Functions