def create_key_info_node(security_token):
key_info = etree.Element(ns_id('<STR_LIT>', ns.dsns))<EOL>sec_token_ref = etree.SubElement(<EOL>key_info, ns_id('<STR_LIT>', ns.wssens))<EOL>sec_token_ref.set(<EOL>ns_id('<STR_LIT>', ns.wssens), security_token.get('<STR_LIT>'))<EOL>reference = etree.SubElement(sec_token_ref, ns_id('<STR_LIT>', ns.wssens))<EOL>reference.set('<STR_LIT>', security_token.get('<STR_LIT>'))<EOL>reference.set('<STR_LIT>', '<STR_LIT>' % security_token.get(WSU_ID))<EOL>return key_info<EOL>
Create the KeyInfo node for WSSE.

    Note that this currently only supports BinarySecurityTokens

    Example of the generated XML:

        <ds:KeyInfo Id="KI-24C56C5B3448F4BE9D141094243396829">
            <wsse:SecurityTokenReference
                wsse11:TokenType="{{ BINARY_TOKEN_TYPE }}">
                <wsse:Reference
                    URI="#X509-24C56C5B3448F4BE9D141094243396828"
                    ValueType="{{ BINARY_TOKEN_TYPE }}"/>
           </wsse:SecurityTokenReference>
        </ds:KeyInfo>