#NEWLINE# def check_ticket( self , ticket ) : #NEWLINE# #INDENT# '\n        Check if the tickt was signed by a trusted cert\n        ' #NEWLINE# if client_ticket . trusted_cert_list : #NEWLINE# #INDENT# client_ticket = SfaTicket ( string = ticket ) #NEWLINE# client_ticket . verify_chain ( self . trusted_cert_list ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise MissingTrustedRoots ( self . config . get_trustedroots_dir ( ) ) #NEWLINE# #UNINDENT# return True