parse_extension_args (OpenID::PAPE::Response)

    # File lib/openid/extensions/pape.rb, line 116
          def parse_extension_args(args, strict=false)
            policies_str = args['auth_policies']
            if policies_str
              @auth_policies = policies_str.split(' ')
            end

            nist_level_str = args['nist_auth_level']
            if nist_level_str
              # special handling of zero to handle to_i behavior
              if nist_level_str.strip == '0'
                nist_level = 0
              else
                nist_level = nist_level_str.to_i
                # if it's zero here we have a bad value
                if nist_level == 0
                  nist_level = nil
                end
              end
              if nist_level and nist_level >= 0 and nist_level < 5
                @nist_auth_level = nist_level
              elsif strict
                raise ArgumentError, "nist_auth_level must be an integer 0 through 4, not #{nist_level_str.inspect}"
              end
            end

            auth_age_str = args['auth_age']
            if auth_age_str
              # special handling of zero to handle to_i behavior
              if auth_age_str.strip == '0'
                auth_age = 0
              else
                auth_age = auth_age_str.to_i
                # if it's zero here we have a bad value
                if auth_age == 0
                  auth_age = nil
                end
              end
              if auth_age and auth_age >= 0
                @auth_age = auth_age
              elsif strict
                raise ArgumentError, "auth_age must be a non-negative integer, not #{auth_age_str.inspect}"
              end
            end
          end