def parseExtensionArgs(self, args, strict=False):
        """Parse the provider authentication policy arguments into the
        internal state of this object

        @param args: unqualified provider authentication policy
            arguments

        @param strict: Whether to raise an exception when bad data is
            encountered

        @returns: None. The data is parsed into the internal fields of
            this object.
        """
        policies_str = args.get('auth_policies')
        if policies_str and policies_str != 'none':
            self.auth_policies = policies_str.split(' ')

        nist_level_str = args.get('nist_auth_level')
        if nist_level_str:
            try:
                nist_level = int(nist_level_str)
            except ValueError:
                if strict:
                    raise ValueError('nist_auth_level must be an integer between '
                                     'zero and four, inclusive')
                else:
                    self.nist_auth_level = None
            else:
                if 0 <= nist_level < 5:
                    self.nist_auth_level = nist_level

        auth_time = args.get('auth_time')
        if auth_time:
            if TIME_VALIDATOR.match(auth_time):
                self.auth_time = auth_time
            elif strict:
                raise ValueError("auth_time must be in RFC3339 format")
def parseExtensionArgs ( self , args , strict = False ) : policies_str = args . get ( 'auth_policies' ) if policies_str and policies_str != 'none' : self . auth_policies = policies_str . split ( ' ' ) nist_level_str = args . get ( 'nist_auth_level' ) if nist_level_str : try : nist_level = int ( nist_level_str ) except ValueError : if strict : raise ValueError ( 'nist_auth_level must be an integer between ' 'zero and four, inclusive' ) else : self . nist_auth_level = None else : if 0 <= nist_level < 5 : self . nist_auth_level = nist_level auth_time = args . get ( 'auth_time' ) if auth_time : if TIME_VALIDATOR . match ( auth_time ) : self . auth_time = auth_time elif strict : raise ValueError ( "auth_time must be in RFC3339 format" )
Parse the provider authentication policy arguments into the
        internal state of this object

        @param args: unqualified provider authentication policy
            arguments

        @param strict: Whether to raise an exception when bad data is
            encountered

        @returns: None. The data is parsed into the internal fields of
            this object.