<s> """<STR_LIT>""" <EOL> import datetime <EOL> import logging <EOL> from cauliflowervest . server import handlers <EOL> from cauliflowervest . server import models <EOL> from cauliflowervest . server import settings <EOL> class BitLocker ( handlers . BitLockerAccessHandler ) : <EOL> """<STR_LIT>""" <EOL> def get ( self , volume_uuid = None ) : <EOL> """<STR_LIT>""" <EOL> if volume_uuid is not None : <EOL> volume_uuid = volume_uuid . upper ( ) <EOL> super ( BitLocker , self ) . get ( volume_uuid ) <EOL> def _CreateNewSecretEntity ( self , unused_owner , volume_uuid , secret ) : <EOL> return models . BitLockerVolume ( <EOL> volume_uuid = volume_uuid , <EOL> recovery_key = str ( secret ) ) <EOL> def SanitizeEntityValue ( self , prop_name , value ) : <EOL> if prop_name == '<STR_LIT>' : <EOL> value = value . strip ( ) <EOL> try : <EOL> return datetime . datetime . strptime ( value , '<STR_LIT>' ) <EOL> except ValueError : <EOL> logging . error ( '<STR_LIT>' , value ) <EOL> return None <EOL> return super ( BitLocker , self ) . SanitizeEntityValue ( prop_name , value ) </s>
