#NEWLINE# def preferredTypes( self , supported_types ) : #NEWLINE# #INDENT# 'Given a list of authentication policy URIs that a provider\n        supports, this method returns the subsequence of those types\n        that are preferred by the relying party.\n\n        @param supported_types: A sequence of authentication policy\n            type URIs that are supported by a provider\n\n        @returns: The sub-sequence of the supported types that are\n            preferred by the relying party. This list will be ordered\n            in the order that the types appear in the supported_types\n            sequence, and may be empty if the provider does not prefer\n            any of the supported authentication types.\n\n        @returntype: [str]\n        ' #NEWLINE# return filter ( self . preferred_auth_policies . __contains__ , supported_types )